org.dbunit.database
Class DatabaseDataSetTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.dataset.AbstractTest
              extended by org.dbunit.dataset.AbstractDataSetTest
                  extended by org.dbunit.database.DatabaseDataSetTest
All Implemented Interfaces:
junit.framework.Test

public class DatabaseDataSetTest
extends AbstractDataSetTest

Since:
Feb 18, 2002
Version:
$Revision: 815 $
Author:
Manuel Laflamme

Constructor Summary
DatabaseDataSetTest(String s)
           
 
Method Summary
protected  IDataSet createDataSet()
           
protected  IDataSet createDuplicateDataSet()
           
protected  IDataSet createMultipleCaseDuplicateDataSet()
          Create a dataset with duplicate tables having different char case in name
protected  String[] getExpectedNames()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testCreateDuplicateDataSet()
           
 void testCreateMultipleCaseDuplicateDataSet()
           
 void testGetColumnsAndQualifiedNamesEnabled()
           
 void testGetPrimaryKeysAndQualifiedNamesEnabled()
           
 void testGetPrimaryKeysWithColumnFilters()
           
 void testGetQualifiedTableNames()
           
 void testGetSelectStatement()
           
 void testGetSelectStatementWithEscapedNames()
           
 void testGetSelectStatementWithEscapedNamesAndOrderBy()
           
 void testGetSelectStatementWithPrimaryKeys()
           
 
Methods inherited from class org.dbunit.dataset.AbstractDataSetTest
assertEqualsTableName, createDuplicateTables, getExpectedDuplicateRows, removeExtraTestTables, testGetCaseInsensitiveTable, testGetCaseInsensitiveTableMetaData, testGetTable, testGetTableMetaData, testGetTableNames, testGetTableNamesDefensiveCopy, testGetTables, testGetTablesDefensiveCopy, testGetUnknownTable, testGetUnknownTableMetaData, testIterator, testReverseIterator
 
Methods inherited from class org.dbunit.dataset.AbstractTest
assertContains, assertContainsIgnoreCase, assertEqualsIgnoreCase, getDuplicateTableName, getExpectedDuplicateNames, getExpectedLowerNames, getExtraTableName
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseDataSetTest

public DatabaseDataSetTest(String s)
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

createDataSet

protected IDataSet createDataSet()
                          throws Exception
Specified by:
createDataSet in class AbstractDataSetTest
Throws:
Exception

getExpectedNames

protected String[] getExpectedNames()
                             throws Exception
Overrides:
getExpectedNames in class AbstractTest
Throws:
Exception

createDuplicateDataSet

protected IDataSet createDuplicateDataSet()
                                   throws Exception
Specified by:
createDuplicateDataSet in class AbstractDataSetTest
Throws:
Exception

createMultipleCaseDuplicateDataSet

protected IDataSet createMultipleCaseDuplicateDataSet()
                                               throws Exception
Description copied from class: AbstractDataSetTest
Create a dataset with duplicate tables having different char case in name

Specified by:
createMultipleCaseDuplicateDataSet in class AbstractDataSetTest
Returns:
Throws:
Exception

testGetSelectStatement

public void testGetSelectStatement()
                            throws Exception
Throws:
Exception

testGetSelectStatementWithEscapedNames

public void testGetSelectStatementWithEscapedNames()
                                            throws Exception
Throws:
Exception

testGetSelectStatementWithEscapedNamesAndOrderBy

public void testGetSelectStatementWithEscapedNamesAndOrderBy()
                                                      throws Exception
Throws:
Exception

testGetSelectStatementWithPrimaryKeys

public void testGetSelectStatementWithPrimaryKeys()
                                           throws Exception
Throws:
Exception

testGetQualifiedTableNames

public void testGetQualifiedTableNames()
                                throws Exception
Throws:
Exception

testGetColumnsAndQualifiedNamesEnabled

public void testGetColumnsAndQualifiedNamesEnabled()
                                            throws Exception
Throws:
Exception

testGetPrimaryKeysAndQualifiedNamesEnabled

public void testGetPrimaryKeysAndQualifiedNamesEnabled()
                                                throws Exception
Throws:
Exception

testGetPrimaryKeysWithColumnFilters

public void testGetPrimaryKeysWithColumnFilters()
                                         throws Exception
Throws:
Exception

testCreateDuplicateDataSet

public void testCreateDuplicateDataSet()
                                throws Exception
Overrides:
testCreateDuplicateDataSet in class AbstractDataSetTest
Throws:
Exception

testCreateMultipleCaseDuplicateDataSet

public void testCreateMultipleCaseDuplicateDataSet()
                                            throws Exception
Overrides:
testCreateMultipleCaseDuplicateDataSet in class AbstractDataSetTest
Throws:
Exception


Copyright © 2002-2012. All Rights Reserved.