Class AbstractDataSetTest

java.lang.Object
org.dbunit.dataset.AbstractTest
org.dbunit.dataset.AbstractDataSetTest
Direct Known Subclasses:
AbstractDataSetDecoratorTest, FlatXmlDataSetTest, ForwardOnlyDataSetTest, XlsxDataSetTest, XmlDataSetTest

public abstract class AbstractDataSetTest extends AbstractTest
Since:
Feb 22, 2002
Version:
$Revision$
Author:
Manuel Laflamme
  • Constructor Details

    • AbstractDataSetTest

      public AbstractDataSetTest()
  • Method Details

    • getExpectedDuplicateRows

      protected int[] getExpectedDuplicateRows()
    • removeExtraTestTables

      public static IDataSet removeExtraTestTables(IDataSet dataSet) throws Exception
      This method exclude BLOB_TABLE and CLOB_TABLE from the specified dataset because BLOB and CLOB are not supported by all database vendor. It also excludes tables with Identity columns (MSSQL) because they are specific to MSSQL. TODO : should be refactored into the various DatabaseEnvironments!
      Throws:
      Exception
    • createDataSet

      protected abstract IDataSet createDataSet() throws Exception
      Throws:
      Exception
    • createDuplicateDataSet

      protected abstract IDataSet createDuplicateDataSet() throws Exception
      Throws:
      Exception
    • createMultipleCaseDuplicateDataSet

      protected abstract IDataSet createMultipleCaseDuplicateDataSet() throws Exception
      Create a dataset with duplicate tables having different char case in name
      Returns:
      Throws:
      Exception
    • assertEqualsTableName

      protected void assertEqualsTableName(String mesage, String expected, String actual)
    • testGetTablesDefensiveCopy

      @Test public void testGetTablesDefensiveCopy() throws Exception
      Throws:
      Exception
    • testCreateDuplicateDataSet

      @Test public void testCreateDuplicateDataSet() throws Exception
      Throws:
      Exception
    • testCreateMultipleCaseDuplicateDataSet

      @Test public void testCreateMultipleCaseDuplicateDataSet() throws Exception
      Throws:
      Exception
    • testGetCaseInsensitiveTable

      @Test public void testGetCaseInsensitiveTable() throws Exception
      Throws:
      Exception
    • testGetCaseInsensitiveTableMetaData

      @Test public void testGetCaseInsensitiveTableMetaData() throws Exception
      Throws:
      Exception
    • createDuplicateTables

      protected ITable[] createDuplicateTables(boolean multipleCase) throws AmbiguousTableNameException
      Throws:
      AmbiguousTableNameException