Class AbstractTest

java.lang.Object
org.dbunit.dataset.AbstractTest
Direct Known Subclasses:
AbstractDataSetTest, AbstractTableFilterTest, AbstractTableIteratorTest

public abstract class AbstractTest extends Object
Since:
Apr 6, 2003
Version:
$Revision$
Author:
Manuel Laflamme
  • Constructor Details

    • AbstractTest

      public AbstractTest()
  • Method Details

    • convertString

      protected String convertString(String str) throws Exception
      Returns the string converted as an identifier according to the metadata rules of the database environment. Most databases convert all metadata identifiers to uppercase. PostgreSQL converts identifiers to lowercase. MySQL preserves case.
      Parameters:
      str - The identifier.
      Returns:
      The identifier converted according to database rules.
      Throws:
      Exception
    • getExpectedNames

      protected String[] getExpectedNames() throws Exception
      Throws:
      Exception
    • getExpectedLowerNames

      protected String[] getExpectedLowerNames() throws Exception
      Throws:
      Exception
    • getExpectedDuplicateNames

      protected String[] getExpectedDuplicateNames()
    • getDuplicateTableName

      protected String getDuplicateTableName()
    • getExtraTableName

      public String getExtraTableName()
    • assertEqualsIgnoreCase

      public void assertEqualsIgnoreCase(String message, String expected, String actual)
    • assertContains

      public void assertContains(String message, Object[] expected, Object[] actual)
    • assertContainsIgnoreCase

      public void assertContainsIgnoreCase(String message, String[] expected, String[] actual)