public class JndiDatabaseTester extends AbstractDatabaseTester
| Constructor and Description |
|---|
JndiDatabaseTester(Properties environment,
String lookupName)
Creates a JndiDatabaseTester with specific JNDI properties.
|
JndiDatabaseTester(Properties environment,
String lookupName,
String schema)
Creates a JndiDatabaseTester with specific JNDI properties.
|
JndiDatabaseTester(String lookupName)
Creates a JndiDatabaseTester with default JNDI properties.
|
| Modifier and Type | Method and Description |
|---|---|
IDatabaseConnection |
getConnection()
Returns the test database connection.
|
String |
toString() |
closeConnection, getDataSet, getSchema, getSetUpOperation, getTearDownOperation, onSetup, onTearDown, setDataSet, setOperationListener, setSchema, setSetUpOperation, setTearDownOperationassertNotNull, assertNotNull, assertNotNullNorEmpty, assertTrue, assertTrue, failpublic JndiDatabaseTester(String lookupName)
lookupName - the name of the resource in the JNDI contextpublic JndiDatabaseTester(Properties environment, String lookupName)
environment - A Properties object with JNDI properties. Can be nulllookupName - the name of the resource in the JNDI contextpublic JndiDatabaseTester(Properties environment, String lookupName, 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 Exception
IDatabaseTesterExceptionpublic String toString()
toString in class AbstractDatabaseTesterCopyright © 2002-2017. All Rights Reserved.