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[] tables,
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[] tables,
String[] prepDataFiles,
String[] expectedDataFiles)
Convenience method to call configureTest() and preTest().
|
void |
verifyData()
For the provided VerifyTableDefinitions, verify each table's actual
results are as expected.
|
void configureTest(VerifyTableDefinition[] tables, String[] prepDataFiles, String[] expectedDataFiles) throws 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.Exception
void preTest() throws Exception
Exception
void preTest(VerifyTableDefinition[] tables, String[] prepDataFiles, String[] expectedDataFiles) throws 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.Exception
void postTest() throws Exception
Exception
void 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.Exception
void verifyData() throws Exception
Exception
void cleanupData() throws Exception
IDatabaseTester.onTearDown()
.Exception
IDataSet getPrepDataset()
IDataSet getExpectedDataset()
Copyright © 2002–2019. All rights reserved.