org.dbunit.dataset
Class AbstractDataSetTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.dbunit.dataset.AbstractTest
org.dbunit.dataset.AbstractDataSetTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- AbstractDataSetDecoratorTest, CaseInsensitiveDataSetTest, CompositeDataSetTest, DatabaseDataSetTest, DefaultDataSetTest, FilteredDataSetTest, FlatDtdDataSetTest, FlatXmlDataSetTest, QueryDataSetTest, XlsDataSetTest, XmlDataSetTest
public abstract class AbstractDataSetTest
- extends AbstractTest
- Since:
- Feb 22, 2002
- Version:
- $Revision: 815 $
- Author:
- Manuel Laflamme
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
AbstractDataSetTest
public AbstractDataSetTest(String s)
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)
testGetTableNames
public void testGetTableNames()
throws Exception
- Throws:
Exception
testGetTableNamesDefensiveCopy
public void testGetTableNamesDefensiveCopy()
throws Exception
- Throws:
Exception
testGetTable
public void testGetTable()
throws Exception
- Throws:
Exception
testGetUnknownTable
public void testGetUnknownTable()
throws Exception
- Throws:
Exception
testGetTableMetaData
public void testGetTableMetaData()
throws Exception
- Throws:
Exception
testGetUnknownTableMetaData
public void testGetUnknownTableMetaData()
throws Exception
- Throws:
Exception
testGetTables
public void testGetTables()
throws Exception
- Throws:
Exception
testGetTablesDefensiveCopy
public void testGetTablesDefensiveCopy()
throws Exception
- Throws:
Exception
testCreateDuplicateDataSet
public void testCreateDuplicateDataSet()
throws Exception
- Throws:
Exception
testCreateMultipleCaseDuplicateDataSet
public void testCreateMultipleCaseDuplicateDataSet()
throws Exception
- Throws:
Exception
testGetCaseInsensitiveTable
public void testGetCaseInsensitiveTable()
throws Exception
- Throws:
Exception
testGetCaseInsensitiveTableMetaData
public void testGetCaseInsensitiveTableMetaData()
throws Exception
- Throws:
Exception
testIterator
public void testIterator()
throws Exception
- Throws:
Exception
testReverseIterator
public void testReverseIterator()
throws Exception
- Throws:
Exception
createDuplicateTables
protected ITable[] createDuplicateTables(boolean multipleCase)
throws AmbiguousTableNameException
- Throws:
AmbiguousTableNameException
Copyright © 2002-2012. All Rights Reserved.