public interface PrepAndExpectedTestCase
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupData()
Cleanup tables specified in prep and expected datasets, using the
provided databaseTester.
|
void |
configureTest(VerifyTableDefinition[] verifyTables,
String[] prepDataFiles,
String[] expectedDataFiles)
Configure the test.
|
IDataSet |
getExpectedDataset()
Get the expected dataset, created from the expectedDataFiles.
|
IDataSet |
getPrepDataset()
Get the prep dataset, created from the prepDataFiles.
|
void |
postTest()
Execute all post-test steps.
|
void |
postTest(boolean verifyData)
Execute post-test steps.
|
void |
preTest()
Execute pre-test steps.
|
void |
preTest(VerifyTableDefinition[] verifyTables,
String[] prepDataFiles,
String[] expectedDataFiles)
Convenience method to call configureTest() and preTest().
|
Object |
runTest(VerifyTableDefinition[] verifyTables,
String[] prepDataFiles,
String[] expectedDataFiles,
PrepAndExpectedTestCaseSteps testSteps)
Run the DbUnit test.
|
void |
verifyData()
For the provided VerifyTableDefinitions, verify each table's actual
results are as expected.
|
void configureTest(VerifyTableDefinition[] verifyTables, String[] prepDataFiles, String[] expectedDataFiles) throws Exception
verifyTables - Table definitions to verify after test execution.prepDataFiles - The prep data files to load as seed data.expectedDataFiles - The expected data files to load as expected data.Exceptionvoid preTest()
throws Exception
Exceptionvoid preTest(VerifyTableDefinition[] verifyTables, String[] prepDataFiles, String[] expectedDataFiles) throws Exception
verifyTables - Table definitions to verify after test execution.prepDataFiles - The prep data files to load as seed data.expectedDataFiles - The expected data files to load as expected data.ExceptionObject runTest(VerifyTableDefinition[] verifyTables, String[] prepDataFiles, String[] expectedDataFiles, PrepAndExpectedTestCaseSteps testSteps) throws Exception
verifyTables - Table definitions to verify after test execution.prepDataFiles - The prep data files to load as seed data.expectedDataFiles - The expected data files to load as expected data.testSteps - The test steps to run.Exceptionvoid postTest()
throws Exception
Exceptionvoid postTest(boolean verifyData)
throws Exception
verifyData - Specify true to perform verify data steps, false to not.
Useful to specify false when test has failure in progress
(e.g. an exception) and verifying data would fail, masking
original test failure.Exceptionvoid verifyData()
throws Exception
Exceptionvoid cleanupData()
throws Exception
IDatabaseTester.onTearDown().ExceptionIDataSet getPrepDataset()
IDataSet getExpectedDataset()
Copyright © 2002-2017. All Rights Reserved.