Package org.dbunit.database.search
Class AbstractMetaDataBasedSearchCallbackTestCase
java.lang.Object
org.dbunit.DatabaseTestCase
org.dbunit.AbstractDatabaseIT
org.dbunit.database.search.AbstractMetaDataBasedSearchCallbackTestCase
- All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.InvocationInterceptor,org.junit.jupiter.api.extension.TestInstantiationAwareExtension
- Direct Known Subclasses:
ImportAndExportKeysSearchCallbackIT,ImportNodesFilterSearchCallbackIT
- Since:
- Aug 28, 2005
- Version:
- $Revision$
- Author:
- Felipe Leme (dbunit@felipeal.net)
-
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 -
Field Summary
Fields inherited from class org.dbunit.AbstractDatabaseIT
_connection, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AbstractMetaDataBasedSearchCallbackgetCallback(IDatabaseConnection connection2) protected IDatabaseConnectionprotected abstract String[][]protected abstract String[][]getInput()protected abstract Stringprotected abstract String[]protected voidReplaces_connectionwith a fresh connection after test tables have been dropped, so thatAbstractDatabaseIT.tearDown()uses an up-to-date dataset cache that does not include the dropped tables.voidsetSqlFile(String sqlFile) voidprotected voidMethods inherited from class org.dbunit.AbstractDatabaseIT
closeConnection, convertString, createOrderedTable, environmentHasFeature, getDatabaseTester, getDataSet, getEnvironment, runTest, runTest, setUp, setUpDatabaseConfig, tearDownMethods inherited from class org.dbunit.DatabaseTestCase
getName, getOperationListener, getSetUpOperation, getTearDownOperation, newDatabaseTesterMethods 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
-
AbstractMetaDataBasedSearchCallbackTestCase
public AbstractMetaDataBasedSearchCallbackTestCase()
-
-
Method Details
-
setSqlFile
-
setUpConnectionWithFile
- Throws:
Exception
-
tearDownTables
- Throws:
Exception
-
refreshConnection
Replaces_connectionwith a fresh connection after test tables have been dropped, so thatAbstractDatabaseIT.tearDown()uses an up-to-date dataset cache that does not include the dropped tables.- Throws:
Exception
-
getSqlFile
-
getTestTableNames
-
getConnection
- Overrides:
getConnectionin classAbstractDatabaseIT
-
getInput
-
getExpectedOutput
-
getCallback
-