UnitTestHarness
1.0
Unit Testing Tool
|
This is an example file for using the unit testing harness. Example of using setupSuite(), setup(), teardown() and teardownSuite(). More...
Functions | |
void | testExampleComponent_setupSuite () |
This routine is optional. Prepare the appropriate global environment for all of the test cases in this suite. setupSuite() is called once only, before any of the test cases are called. More... | |
void | testExampleComponent_setup () |
testExampleComponent_setup() ensures a consistent environment exists prior to calling each test case. This routine is optional. If you declare one here, it should prepare any appropriate environment that will be required before running each of the test cases in this suite. More... | |
void | testExampleComponent_testAdd () |
Example of a developer's test routine. A test*.ctl file can contain as many test routines as the developer wants. More... | |
void | testExampleComponent_testAddNegative () |
Another example of a developer's test routine. More... | |
void | testExampleComponent_testFails () |
Another example of a developer's test routine. This test is to show what happens when a test fails. More... | |
void | testExampleComponent_teardown () |
This routine is optional. Called after each test case routine. More... | |
void | testExampleComponent_teardownSuite () |
This routine is optional. Called after all test case routines in this file have been run. More... | |
This is an example file for using the unit testing harness. Example of using setupSuite(), setup(), teardown() and teardownSuite().
void testExampleComponent_setup | ( | ) |
testExampleComponent_setup() ensures a consistent environment exists prior to calling each test case. This routine is optional. If you declare one here, it should prepare any appropriate environment that will be required before running each of the test cases in this suite.
void testExampleComponent_setupSuite | ( | ) |
This routine is optional. Prepare the appropriate global environment for all of the test cases in this suite. setupSuite() is called once only, before any of the test cases are called.
void testExampleComponent_teardown | ( | ) |
This routine is optional. Called after each test case routine.
void testExampleComponent_teardownSuite | ( | ) |
This routine is optional. Called after all test case routines in this file have been run.
void testExampleComponent_testAdd | ( | ) |
Example of a developer's test routine. A test*.ctl file can contain as many test routines as the developer wants.
void testExampleComponent_testAddNegative | ( | ) |
Another example of a developer's test routine.
void testExampleComponent_testFails | ( | ) |
Another example of a developer's test routine. This test is to show what happens when a test fails.