java.lang.Object
org.apache.derbyTesting.unitTests.harness.T_Generic
org.apache.derbyTesting.unitTests.harness.T_MultiIterations
- All Implemented Interfaces:
- org.apache.derby.iapi.services.monitor.ModuleControl, UnitTest
- Direct Known Subclasses:
- T_MultiThreadedIterations
- public abstract class T_MultiIterations
- extends T_Generic
Abstract class which executes T_Generic. This splits the running
of a test into two parts, the test setup and running the test.
This allows the setup to be performed once, and then the
test itself to be run for a number of iterations. The number
iterations is set by the property derby.unittests.iterations
and defaults to 1.
Statistics are provided about each iteration in the error log. The statistics
are time for each iteration, used and total memory changes per iteration.
|
Method Summary |
protected void |
runTests()
Run the test. |
protected abstract void |
runTestSet()
Run once per-iteration to run the actual test. |
protected abstract void |
setupTest()
Run once to set up the test. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
T_MultiIterations
protected T_MultiIterations()
runTests
protected void runTests()
throws T_Fail
- Run the test. The test should raise an exception if it
fails. runTests should return if the tests pass.
- Specified by:
runTests in class T_Generic
setupTest
protected abstract void setupTest()
throws T_Fail
- Run once to set up the test.
runTestSet
protected abstract void runTestSet()
throws T_Fail
- Run once per-iteration to run the actual test.