org.apache.derbyTesting.unitTests.harness
Class BasicUnitTest

java.lang.Object
  extended by org.apache.derbyTesting.unitTests.harness.BasicUnitTest
All Implemented Interfaces:
UnitTest

 class BasicUnitTest
extends java.lang.Object
implements UnitTest


Field Summary
(package private)  java.lang.Error exception
           
(package private)  boolean result
           
(package private)  int testDuration
           
(package private)  int testType
           
(package private)  java.lang.String traceMessage
           
 
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
 

Field Detail

traceMessage

java.lang.String traceMessage

testType

int testType

testDuration

int testDuration

result

boolean result

exception

java.lang.Error exception
Constructor Detail

BasicUnitTest

BasicUnitTest(java.lang.String traceMessage,
              int testType,
              int testDuration,
              boolean result,
              java.lang.Error exception)
Method Detail

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)

Built on Sat 2009-11-28 18:44:18-0800, from revision 885187

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.