|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PrepAndExpectedTestCase
Test case supporting prep data and expected data.
| Method Summary | |
|---|---|
void |
cleanupData()
Cleanup tables specified in prep and expected datasets, using the provided databaseTester. |
void |
configureTest(VerifyTableDefinition[] tables,
java.lang.String[] prepDataFiles,
java.lang.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[] tables,
java.lang.String[] prepDataFiles,
java.lang.String[] expectedDataFiles)
Convenience method to call configureTest() and preTest(). |
| Method Detail |
|---|
void configureTest(VerifyTableDefinition[] tables,
java.lang.String[] prepDataFiles,
java.lang.String[] expectedDataFiles)
throws java.lang.Exception
tables - 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.
java.lang.Exception
void preTest()
throws java.lang.Exception
java.lang.Exception
void preTest(VerifyTableDefinition[] tables,
java.lang.String[] prepDataFiles,
java.lang.String[] expectedDataFiles)
throws java.lang.Exception
tables - 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.
java.lang.Exception
void postTest()
throws java.lang.Exception
java.lang.Exception
void postTest(boolean verifyData)
throws java.lang.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.
java.lang.Exception
void cleanupData()
throws java.lang.Exception
IDatabaseTester.onTearDown().
java.lang.ExceptionIDataSet getPrepDataset()
IDataSet getExpectedDataset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||