| java.lang.Object org.apache.derbyTesting.unitTests.harness.T_Generic
All known Subclasses: org.apache.derbyTesting.unitTests.store.T_RecoverFullLog, org.apache.derbyTesting.unitTests.services.T_UUIDFactory, org.apache.derbyTesting.unitTests.store.T_SortController, org.apache.derbyTesting.unitTests.store.T_AccessFactory, org.apache.derbyTesting.unitTests.store.T_Recovery, org.apache.derbyTesting.unitTests.lang.T_Like, org.apache.derbyTesting.unitTests.services.T_CacheService, org.apache.derbyTesting.unitTests.store.T_RecoverBadLog, org.apache.derbyTesting.unitTests.crypto.T_Cipher, org.apache.derbyTesting.unitTests.store.T_Heap, org.apache.derbyTesting.unitTests.store.T_XA, org.apache.derbyTesting.unitTests.harness.T_MultiIterations, org.apache.derbyTesting.unitTests.services.T_MarkedLimitInputStream,
T_Generic | abstract public class T_Generic implements UnitTest,ModuleControl(Code) | | Abstract class which executes a unit test.
To write a test, extend this class with a class which implements the two
abstract methods:
See Also: UnitTest See Also: ModuleControl |
Method Summary | |
public boolean | Execute(HeaderPrintWriter out) | protected boolean | FAIL(String msg) Emit a message indicating why the test failed.
RESOLVE: Should this be localized?
Parameters: msg - the message. | protected boolean | PASS(String testName) Emit a message saying the test passed.
You may use this to emit messages indicating individual test cases
within a unit test passed.
RESOLVE:Localize this.
Parameters: test - the test which passed. | public void | REPORT(String msg) Emit a message during a unit test run, indent the message
to allow the PASS/FAIL messages to stand out. | public int | UnitTestDuration() | public int | UnitTestType() | public void | boot(boolean create, Properties startParams) | abstract protected String | getModuleToTestProtocolName() Get the name of the protocol for the module to test.
This is the 'factory.MODULE' variable.
'moduleName' to the name of the module to test. | abstract protected void | runTests() Run the test. | public void | stop() |
shortModuleToTestName | protected String shortModuleToTestName(Code) | | The unqualified name for the module to test. This is set by the generic
code.
|
startParams | protected Properties startParams(Code) | | The start parameters for your test. This is set by generic code.
|
T_Generic | protected T_Generic()(Code) | | |
FAIL | protected boolean FAIL(String msg)(Code) | | Emit a message indicating why the test failed.
RESOLVE: Should this be localized?
Parameters: msg - the message. false |
PASS | protected boolean PASS(String testName)(Code) | | Emit a message saying the test passed.
You may use this to emit messages indicating individual test cases
within a unit test passed.
RESOLVE:Localize this.
Parameters: test - the test which passed. true |
REPORT | public void REPORT(String msg)(Code) | | Emit a message during a unit test run, indent the message
to allow the PASS/FAIL messages to stand out.
|
getModuleToTestProtocolName | abstract protected String getModuleToTestProtocolName()(Code) | | Get the name of the protocol for the module to test.
This is the 'factory.MODULE' variable.
'moduleName' to the name of the module to test.
Parameters: testConfiguration - the configuration for this test. |
runTests | abstract protected void runTests() throws Exception(Code) | | Run the test. The test should raise an exception if it
fails. runTests should return if the tests pass.
exception: Exception - Test code throws these |
|
|