public class JndiDatabaseTester extends AbstractDatabaseTester
| Constructor and Description |
|---|
JndiDatabaseTester(java.util.Properties environment,
java.lang.String lookupName)
Creates a JndiDatabaseTester with specific JNDI properties.
|
JndiDatabaseTester(java.util.Properties environment,
java.lang.String lookupName,
java.lang.String schema)
Creates a JndiDatabaseTester with specific JNDI properties.
|
JndiDatabaseTester(java.lang.String lookupName)
Creates a JndiDatabaseTester with default JNDI properties.
|
| Modifier and Type | Method and Description |
|---|---|
IDatabaseConnection |
getConnection()
Returns the test database connection.
|
java.lang.String |
toString() |
closeConnection, getDataSet, getSchema, getSetUpOperation, getTearDownOperation, onSetup, onTearDown, setDataSet, setOperationListener, setSchema, setSetUpOperation, setTearDownOperationassertNotNull, assertNotNull, assertNotNullNorEmpty, assertTrue, assertTrue, failpublic JndiDatabaseTester(java.lang.String lookupName)
lookupName - the name of the resource in the JNDI contextpublic JndiDatabaseTester(java.util.Properties environment,
java.lang.String lookupName)
environment - A Properties object with JNDI properties. Can be nulllookupName - the name of the resource in the JNDI contextpublic JndiDatabaseTester(java.util.Properties environment,
java.lang.String lookupName,
java.lang.String schema)
environment - A Properties object with JNDI properties. Can be nulllookupName - the name of the resource in the JNDI contextschema - The schema name to be used for new dbunit connections. Can be nullpublic IDatabaseConnection getConnection() throws java.lang.Exception
IDatabaseTesterjava.lang.Exceptionpublic java.lang.String toString()
toString in class AbstractDatabaseTesterCopyright © 2002-2018. All Rights Reserved.