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

public abstract class AbstractMetaDataBasedSearchCallbackTestCase extends AbstractDatabaseIT
Since:
Aug 28, 2005
Version:
$Revision$
Author:
Felipe Leme (dbunit@felipeal.net)
  • Constructor Details

    • AbstractMetaDataBasedSearchCallbackTestCase

      public AbstractMetaDataBasedSearchCallbackTestCase()
  • Method Details

    • setSqlFile

      public void setSqlFile(String sqlFile)
    • setUpConnectionWithFile

      @BeforeEach public void setUpConnectionWithFile() throws Exception
      Throws:
      Exception
    • tearDownTables

      @AfterEach protected void tearDownTables() throws Exception
      Throws:
      Exception
    • refreshConnection

      protected void refreshConnection() throws Exception
      Replaces _connection with a fresh connection after test tables have been dropped, so that AbstractDatabaseIT.tearDown() uses an up-to-date dataset cache that does not include the dropped tables.
      Throws:
      Exception
    • getSqlFile

      protected abstract String getSqlFile()
    • getTestTableNames

      protected abstract String[] getTestTableNames()
    • getConnection

      protected IDatabaseConnection getConnection()
      Overrides:
      getConnection in class AbstractDatabaseIT
    • getInput

      protected abstract String[][] getInput()
    • getExpectedOutput

      protected abstract String[][] getExpectedOutput()
    • getCallback

      protected abstract AbstractMetaDataBasedSearchCallback getCallback(IDatabaseConnection connection2)