| org.apache.derbyTesting.unitTests.harness.UnitTestManager
All known Subclasses: org.apache.derbyTesting.unitTests.harness.BasicUnitTestManager,
UnitTestManager | public interface UnitTestManager (Code) | | The UnitTestManager provides a mechanism for
registering subsystem tests and then invoking
them. It can produce an output report specifying
the results, the timing, and any output produced
by the tests. If the run fails, the invoker of
the tests should shut down the system.
|
Method Summary | |
public void | registerTest(UnitTest objectToTest, String testName) register an object that has the UnitTest interface,
marking what type it has and its duration. | public boolean | runTests() run the tests. | public boolean | runTests(int testType, int testDuration) Convenience function to set the test type and duration
for the UnitTestManager and then run the tests. | public void | setPerformanceReportOn(boolean performanceReportOn) specify whether performance statistics should be
gathered when tests are run. | public void | setTestDuration(int testDuration) the test duration is set. | public void | setTestType(int testType) the test duration is set. |
RUN_FOREVER | final public static String RUN_FOREVER(Code) | | Debug flag to allow the cloudscape system running the tests
to run forever. By default test systems are killed
after an interval of T_Bomb.DEFAULT_BOMB_DELAY to avoid tests
hanging.
|
SKIP_UNIT_TESTS | final public static String SKIP_UNIT_TESTS(Code) | | Debug flag to skip unit tests.
|
registerTest | public void registerTest(UnitTest objectToTest, String testName)(Code) | | register an object that has the UnitTest interface,
marking what type it has and its duration.
Tests are run in the order they were registered.
|
runTests | public boolean runTests()(Code) | | run the tests. Tests are run
in the order they were registered, filtered by type
and duration set for the unit test manager.
|
runTests | public boolean runTests(int testType, int testDuration)(Code) | | Convenience function to set the test type and duration
for the UnitTestManager and then run the tests.
See Also: UnitTestConstants |
setPerformanceReportOn | public void setPerformanceReportOn(boolean performanceReportOn)(Code) | | specify whether performance statistics should be
gathered when tests are run. The manager will collect
the duration of each test, and will compare it to
any previous runs it may have done of that test.
|
setTestDuration | public void setTestDuration(int testDuration)(Code) | | the test duration is set. This will be used when the
tests are run; no tests with duration more than
specified will be run.
|
setTestType | public void setTestType(int testType)(Code) | | the test duration is set. This will be used when the
tests are run; no tests with duration more than
specified will be run.
|
|
|