org.apache.derbyTesting.unitTests.harness
Class BasicUnitTest
java.lang.Object
org.apache.derbyTesting.unitTests.harness.BasicUnitTest
- All Implemented Interfaces:
- UnitTest
class BasicUnitTest
- extends java.lang.Object
- implements UnitTest
|
Constructor Summary |
BasicUnitTest(java.lang.String traceMessage,
int testType,
int testDuration,
boolean result,
java.lang.Error exception)
|
|
Method Summary |
boolean |
Execute(org.apache.derby.iapi.services.stream.HeaderPrintWriter output)
Execute the test. |
private void |
executeCatch(org.apache.derby.iapi.services.stream.HeaderPrintWriter output)
|
java.lang.String |
toString()
|
int |
UnitTestDuration()
UnitTestDuration |
int |
UnitTestType()
UnitTestDuration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
traceMessage
java.lang.String traceMessage
testType
int testType
testDuration
int testDuration
result
boolean result
exception
java.lang.Error exception
BasicUnitTest
BasicUnitTest(java.lang.String traceMessage,
int testType,
int testDuration,
boolean result,
java.lang.Error exception)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Execute
public boolean Execute(org.apache.derby.iapi.services.stream.HeaderPrintWriter output)
- Description copied from interface:
UnitTest
- Execute the test.
- Specified by:
Execute in interface UnitTest
- Parameters:
output - A HeaderPrintWriter the test may use for tracing.
To disable tracing the caller may provide a
HeaderPrintWriter which throws away all the data
the test writes.
- Returns:
- true iff the test passes
UnitTestDuration
public int UnitTestDuration()
- Description copied from interface:
UnitTest
- UnitTestDuration
- Specified by:
UnitTestDuration in interface UnitTest
- Returns:
- The tests duration.
- See Also:
UnitTestConstants
UnitTestType
public int UnitTestType()
- Description copied from interface:
UnitTest
- UnitTestDuration
- Specified by:
UnitTestType in interface UnitTest
- Returns:
- The tests duration.
- See Also:
UnitTestConstants
executeCatch
private void executeCatch(org.apache.derby.iapi.services.stream.HeaderPrintWriter output)
Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.