Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derbyTesting.unitTests.harness
Class T_MultiIterations  view T_MultiIterations download T_MultiIterations.java

java.lang.Object
  extended byorg.apache.derbyTesting.unitTests.harness.T_Generic
      extended byorg.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.


Field Summary
 
Fields inherited from class org.apache.derbyTesting.unitTests.harness.T_Generic
out, shortModuleToTestName, startParams
 
Constructor Summary
protected T_MultiIterations()
           
 
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 org.apache.derbyTesting.unitTests.harness.T_Generic
boot, Execute, FAIL, getModuleToTestProtocolName, PASS, REPORT, stop, UnitTestDuration, UnitTestType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

T_MultiIterations

protected T_MultiIterations()
Method Detail

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.