Project Wonder 2.0

er.testrunner
Class ERXBatchTestInterface

java.lang.Object
  extended byer.testrunner.ERXBatchTestInterface
All Implemented Interfaces:
ERXTestListener, TestListener

public class ERXBatchTestInterface
extends Object
implements ERXTestListener

Used for running a batch of tests.


Field Summary
protected  String _errorMessage
           
protected  boolean _showExceptions
           
protected  String _test
           
protected  ERXTestRunner aTestRunner
           
static boolean HIDE_EXCEPTIONS
           
static ERXLogger log
          logging support
protected  long runTime
           
static boolean SHOW_EXCEPTIONS
           
protected  ERXTestResult testResult
           
 
Constructor Summary
ERXBatchTestInterface(String test)
           
 
Method Summary
 void addError(Test test, Throwable t)
           
 void addFailure(Test test, AssertionFailedError t)
           
 void clearStatus()
           
protected  ERXTestResult doRun(Test suite)
           
 void endTest(Test test)
           
 String errorMessage()
           
 void performTest(ERXLogger userLogger, boolean showExceptions)
           
 void print()
           
protected  void printErrors()
          Prints the errors to the standard output
protected  void printFailures()
          Prints failures to the standard output
protected  void printHeader()
          Prints the header of the report
 void runFailed(String message)
           
 long runTime()
           
 boolean showExceptions()
           
protected  ERXTestResult start()
           
 void startTest(Test test)
           
 String test()
           
 ERXTestResult testResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final ERXLogger log
logging support


SHOW_EXCEPTIONS

public static final boolean SHOW_EXCEPTIONS
See Also:
Constant Field Values

HIDE_EXCEPTIONS

public static final boolean HIDE_EXCEPTIONS
See Also:
Constant Field Values

_test

protected String _test

_showExceptions

protected boolean _showExceptions

_errorMessage

protected String _errorMessage

aTestRunner

protected ERXTestRunner aTestRunner

testResult

protected ERXTestResult testResult

runTime

protected long runTime
Constructor Detail

ERXBatchTestInterface

public ERXBatchTestInterface(String test)
Method Detail

performTest

public void performTest(ERXLogger userLogger,
                        boolean showExceptions)

start

protected ERXTestResult start()
                       throws Exception
Throws:
Exception

doRun

protected ERXTestResult doRun(Test suite)

print

public void print()

printErrors

protected void printErrors()
Prints the errors to the standard output


printFailures

protected void printFailures()
Prints failures to the standard output


printHeader

protected void printHeader()
Prints the header of the report


testResult

public ERXTestResult testResult()

errorMessage

public String errorMessage()

runTime

public long runTime()

test

public String test()

showExceptions

public boolean showExceptions()

addError

public void addError(Test test,
                     Throwable t)
Specified by:
addError in interface TestListener

addFailure

public void addFailure(Test test,
                       AssertionFailedError t)
Specified by:
addFailure in interface TestListener

startTest

public void startTest(Test test)
Specified by:
startTest in interface TestListener

endTest

public void endTest(Test test)
Specified by:
endTest in interface TestListener

runFailed

public void runFailed(String message)
Specified by:
runFailed in interface ERXTestListener

clearStatus

public void clearStatus()
Specified by:
clearStatus in interface ERXTestListener

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.