Package org.dbunit
Class JndiBasedDBTestCase
java.lang.Object
org.dbunit.DatabaseTestCase
org.dbunit.DBTestCase
org.dbunit.JndiBasedDBTestCase
- All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.InvocationInterceptor,org.junit.jupiter.api.extension.TestInstantiationAwareExtension
TestCase that uses a JndiDatabaseTester.
- Since:
- 2.2.0
- Version:
- $Revision$ $Date$
- Author:
- Andres Almiray (aalmiray@users.sourceforge.net), Last changed by: $Author$
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor
org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension
org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertiesReturns the JNDI properties to use.
Subclasses must override this method to provide customized JNDI properties.protected abstract StringReturns the JNDI lookup name for the test DataSource.protected IDatabaseTesterCreates a new IDatabaseTester.
Default implementation returns aJndiDatabaseTesterconfigured with the values returned fromgetJNDIProperties()andgetLookupName().Methods inherited from class org.dbunit.DBTestCase
getConnectionMethods inherited from class org.dbunit.DatabaseTestCase
closeConnection, getDatabaseTester, getDataSet, getName, getOperationListener, getSetUpOperation, getTearDownOperation, setUp, setUpDatabaseConfig, tearDownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor
interceptAfterAllMethod, interceptAfterEachMethod, interceptBeforeAllMethod, interceptBeforeEachMethod, interceptDynamicTest, interceptTestClassConstructor, interceptTestFactoryMethod, interceptTestMethod, interceptTestTemplateMethodMethods inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension
getTestInstantiationExtensionContextScope
-
Constructor Details
-
JndiBasedDBTestCase
public JndiBasedDBTestCase() -
JndiBasedDBTestCase
-
-
Method Details
-
newDatabaseTester
Creates a new IDatabaseTester.
Default implementation returns aJndiDatabaseTesterconfigured with the values returned fromgetJNDIProperties()andgetLookupName().- Overrides:
newDatabaseTesterin classDBTestCase
-
getLookupName
Returns the JNDI lookup name for the test DataSource. -
getJNDIProperties
Returns the JNDI properties to use.
Subclasses must override this method to provide customized JNDI properties. Default implementation returns an empty Properties object.
-