public abstract class JndiBasedDBTestCase extends DBTestCase
Constructor and Description |
---|
JndiBasedDBTestCase() |
JndiBasedDBTestCase(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Properties |
getJNDIProperties()
Returns the JNDI properties to use.
Subclasses must override this method to provide customized JNDI properties. |
protected abstract java.lang.String |
getLookupName()
Returns the JNDI lookup name for the test DataSource.
|
protected IDatabaseTester |
newDatabaseTester()
Creates a new IDatabaseTester.
Default implementation returns a JndiDatabaseTester configured
with the values returned from getJNDIProperties() and
getLookupName() . |
getConnection
closeConnection, getDatabaseTester, getDataSet, getName, getOperationListener, getSetUpOperation, getTearDownOperation, setUp, setUpDatabaseConfig, tearDown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
interceptAfterAllMethod, interceptAfterEachMethod, interceptBeforeAllMethod, interceptBeforeEachMethod, interceptDynamicTest, interceptDynamicTest, interceptTestClassConstructor, interceptTestFactoryMethod, interceptTestMethod, interceptTestTemplateMethod
public JndiBasedDBTestCase()
public JndiBasedDBTestCase(java.lang.String name)
protected IDatabaseTester newDatabaseTester()
JndiDatabaseTester
configured
with the values returned from getJNDIProperties()
and
getLookupName()
.newDatabaseTester
in class DBTestCase
protected abstract java.lang.String getLookupName()
protected java.util.Properties getJNDIProperties()
Copyright © 2002-2025. All Rights Reserved.