org.dbunit.database
Class AbstractSearchCallbackFilteredByPKsTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.AbstractHSQLTestCase
              extended by org.dbunit.database.AbstractSearchCallbackFilteredByPKsTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractImportedAndExportedKeysFilteredByPKsTestCase, AbstractImportedKeysFilteredByPKsTestCase

public abstract class AbstractSearchCallbackFilteredByPKsTestCase
extends AbstractHSQLTestCase


Field Summary
 
Fields inherited from class org.dbunit.AbstractHSQLTestCase
A, A1, A2, B, B1, B2, B3, B4, B5, B6, B7, B8, C, C1, C2, C3, C4, D, D1, D2, E, E1, E2, E3, E4, F, F1, F2, G, G1, G2, H, H1, H2, logger
 
Constructor Summary
AbstractSearchCallbackFilteredByPKsTestCase(String testName, String sqlFile)
           
 
Method Summary
protected  void addInput(String tableName, String[] ids)
           
protected  void addOutput(String tableName, String[] ids)
           
protected  void assertRows(IDataSet dataset)
           
protected  void assertTablesName(String[] outputTables)
           
protected  void assertTablesSize(String[] actualTables)
           
protected  void doIt()
           
protected abstract  IDataSet getDataset()
           
protected  PrimaryKeyFilter.PkTableMap getInput()
           
protected  PrimaryKeyFilter.PkTableMap getOutput()
           
protected  IDataSet setupTablesDataSetFixture()
           
protected abstract  int[] setupTablesSizeFixture()
           
 void testSetupTables()
           
 
Methods inherited from class org.dbunit.AbstractHSQLTestCase
dump, dump, getConnection, setUp, tearDown
 
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

AbstractSearchCallbackFilteredByPKsTestCase

public AbstractSearchCallbackFilteredByPKsTestCase(String testName,
                                                   String sqlFile)
Method Detail

setupTablesSizeFixture

protected abstract int[] setupTablesSizeFixture()

setupTablesDataSetFixture

protected IDataSet setupTablesDataSetFixture()
                                      throws SQLException
Throws:
SQLException

addInput

protected void addInput(String tableName,
                        String[] ids)

addOutput

protected void addOutput(String tableName,
                         String[] ids)

getDataset

protected abstract IDataSet getDataset()
                                throws SQLException,
                                       SearchException,
                                       DataSetException
Throws:
SQLException
SearchException
DataSetException

doIt

protected void doIt()
             throws SQLException,
                    DataSetException,
                    SearchException
Throws:
SQLException
DataSetException
SearchException

assertTablesSize

protected void assertTablesSize(String[] actualTables)

assertTablesName

protected void assertTablesName(String[] outputTables)

assertRows

protected void assertRows(IDataSet dataset)
                   throws DataSetException
Throws:
DataSetException

testSetupTables

public void testSetupTables()
                     throws SQLException,
                            DataSetException
Throws:
SQLException
DataSetException

getInput

protected PrimaryKeyFilter.PkTableMap getInput()

getOutput

protected PrimaryKeyFilter.PkTableMap getOutput()


Copyright © 2002-2012. All Rights Reserved.