|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.AbstractDatabaseTester org.dbunit.JndiDatabaseTester
public class JndiDatabaseTester
DatabaseTester that pulls a DataSource from a JNDI location.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.dbunit.AbstractDatabaseTester |
---|
AbstractDatabaseTester.AssertionFailedError |
Constructor Summary | |
---|---|
JndiDatabaseTester(java.util.Properties environment,
java.lang.String lookupName)
Creates a JndiDatabaseTester with specific JNDI properties. |
|
JndiDatabaseTester(java.lang.String lookupName)
Creates a JndiDatabaseTester with default JNDI properties. |
Method Summary | |
---|---|
IDatabaseConnection |
getConnection()
Returns the test database connection. |
Methods inherited from class org.dbunit.AbstractDatabaseTester |
---|
assertNotNullNorEmpty, assertTrue, closeConnection, getDataSet, getSchema, getSetUpOperation, getTearDownOperation, onSetup, onTearDown, setDataSet, setSchema, setSetUpOperation, setTearDownOperation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JndiDatabaseTester(java.util.Properties environment, java.lang.String lookupName)
environment
- A Properties object with JNDI propertieslookupName
- the name of the resource in the JNDI contextpublic JndiDatabaseTester(java.lang.String lookupName)
lookupName
- the name of the resource in the JNDI contextMethod Detail |
---|
public IDatabaseConnection getConnection() throws java.lang.Exception
IDatabaseTester
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |