Package org.dbunit
Class DataSourceBasedDBTestCase
java.lang.Object
org.dbunit.DatabaseTestCase
org.dbunit.DBTestCase
org.dbunit.DataSourceBasedDBTestCase
- 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 DataSourceDatabaseTester.
- Since:
- 2.2.0
- Version:
- $Revision$ $Date$
- Author:
- Andres Almiray (aalmiray@users.sourceforge.net), Felipe Leme (dbunit@felipeal.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
ConstructorsConstructorDescriptionCreates a testCase with no name.Creates a testCase with the given name. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DataSourceReturns the test DataSource.protected IDatabaseTesterCreates a new IDatabaseTester.
Default implementation returns aDataSourceDatabaseTesterconfigured with the value returned fromgetDataSource().Methods inherited from class org.dbunit.DBTestCase
getConnectionMethods inherited from class org.dbunit.DatabaseTestCase
closeConnection, getDatabaseTester, getDataSet, getName, getOperationListener, getSetUpOperation, getTearDownOperation, setUp, setUpDatabaseConfig, tearDown, 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
-
DataSourceBasedDBTestCase
public DataSourceBasedDBTestCase()Creates a testCase with no name. -
DataSourceBasedDBTestCase
Creates a testCase with the given name.- Parameters:
name- the test case name.
-
-
Method Details
-
newDatabaseTester
Creates a new IDatabaseTester.
Default implementation returns aDataSourceDatabaseTesterconfigured with the value returned fromgetDataSource().- Overrides:
newDatabaseTesterin classDBTestCase- Returns:
- the newly created database tester.
-
getDataSource
Returns the test DataSource.- Returns:
- the test DataSource.
-