Package org.dbunit.dataset
Class AbstractDataSetTest
java.lang.Object
org.dbunit.dataset.AbstractTest
org.dbunit.dataset.AbstractDataSetTest
- Direct Known Subclasses:
AbstractDataSetDecoratorTest,FlatXmlDataSetTest,ForwardOnlyDataSetTest,XlsxDataSetTest,XmlDataSetTest
- Since:
- Feb 22, 2002
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertEqualsTableName(String mesage, String expected, String actual) protected abstract IDataSetprotected abstract IDataSetprotected ITable[]createDuplicateTables(boolean multipleCase) protected abstract IDataSetCreate a dataset with duplicate tables having different char case in nameprotected int[]static IDataSetremoveExtraTestTables(IDataSet dataSet) This method exclude BLOB_TABLE and CLOB_TABLE from the specified dataset because BLOB and CLOB are not supported by all database vendor.voidvoidvoidvoidvoidMethods inherited from class org.dbunit.dataset.AbstractTest
assertContains, assertContainsIgnoreCase, assertEqualsIgnoreCase, convertString, getDuplicateTableName, getExpectedDuplicateNames, getExpectedLowerNames, getExpectedNames, getExtraTableName
-
Constructor Details
-
AbstractDataSetTest
public AbstractDataSetTest()
-
-
Method Details
-
getExpectedDuplicateRows
protected int[] getExpectedDuplicateRows() -
removeExtraTestTables
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 used to test identity/generated columns, present across several - not just one - database environments' DDL and not seeded by the init dataset, in both their uppercase and lowercase forms: unlike the other vendors here, PostgreSQL folds unquoted identifiers to lowercase instead of uppercase. TODO : should be refactored into the various DatabaseEnvironments!- Throws:
Exception
-
createDataSet
- Throws:
Exception
-
createDuplicateDataSet
- Throws:
Exception
-
createMultipleCaseDuplicateDataSet
Create a dataset with duplicate tables having different char case in name- Returns:
- Throws:
Exception
-
assertEqualsTableName
-
testGetTablesDefensiveCopy_onMultipleCalls_returnsNewArrayEachTime
@Test public void testGetTablesDefensiveCopy_onMultipleCalls_returnsNewArrayEachTime() throws Exception- Throws:
Exception
-
testCreateDuplicateDataSet_withDuplicateTableNames_throwsAmbiguousTableNameException
@Test public void testCreateDuplicateDataSet_withDuplicateTableNames_throwsAmbiguousTableNameException() throws Exception- Throws:
Exception
-
testCreateMultipleCaseDuplicateDataSet_withDuplicateCaseVariantNames_throwsAmbiguousTableNameException
@Test public void testCreateMultipleCaseDuplicateDataSet_withDuplicateCaseVariantNames_throwsAmbiguousTableNameException() throws Exception- Throws:
Exception
-
testGetCaseInsensitiveTable_withLowercaseTableName_returnsTable
@Test public void testGetCaseInsensitiveTable_withLowercaseTableName_returnsTable() throws Exception- Throws:
Exception
-
testGetCaseInsensitiveTableMetaData_withLowercaseTableName_returnsMetaData
@Test public void testGetCaseInsensitiveTableMetaData_withLowercaseTableName_returnsMetaData() throws Exception- Throws:
Exception
-
createDuplicateTables
- Throws:
AmbiguousTableNameException
-