Project Wonder 5.0

er.testrunner
Class ERXBatchTestInterface

java.lang.Object
  extended by er.testrunner.ERXBatchTestInterface
All Implemented Interfaces:
ERXTestListener, junit.framework.TestListener

public class ERXBatchTestInterface
extends java.lang.Object
implements ERXTestListener

Used for running a batch of tests.


Field Summary
protected  java.lang.String _errorMessage
           
protected  boolean _showExceptions
           
protected  java.lang.String _test
           
protected  ERXTestRunner aTestRunner
           
static boolean HIDE_EXCEPTIONS
           
static org.apache.log4j.Logger log
          logging support
protected  long runTime
           
static boolean SHOW_EXCEPTIONS
           
protected  ERXTestResult testResult
           
 
Constructor Summary
ERXBatchTestInterface(java.lang.String test)
           
 
Method Summary
 void addError(junit.framework.Test test, java.lang.Throwable t)
           
 void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
           
 void clearStatus()
           
protected  ERXTestResult doRun(junit.framework.Test suite)
           
 void endTest(junit.framework.Test test)
           
 java.lang.String errorMessage()
           
 void performTest(org.apache.log4j.Logger 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(java.lang.String message)
           
 long runTime()
           
 boolean showExceptions()
           
protected  ERXTestResult start()
           
 void startTest(junit.framework.Test test)
           
 java.lang.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 org.apache.log4j.Logger 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 java.lang.String _test

_showExceptions

protected boolean _showExceptions

_errorMessage

protected java.lang.String _errorMessage

aTestRunner

protected ERXTestRunner aTestRunner

testResult

protected ERXTestResult testResult

runTime

protected long runTime
Constructor Detail

ERXBatchTestInterface

public ERXBatchTestInterface(java.lang.String test)
Method Detail

performTest

public void performTest(org.apache.log4j.Logger userLogger,
                        boolean showExceptions)

start

protected ERXTestResult start()
                       throws java.lang.Exception
Throws:
java.lang.Exception

doRun

protected ERXTestResult doRun(junit.framework.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 java.lang.String errorMessage()

runTime

public long runTime()

test

public java.lang.String test()

showExceptions

public boolean showExceptions()

addError

public void addError(junit.framework.Test test,
                     java.lang.Throwable t)
Specified by:
addError in interface junit.framework.TestListener

addFailure

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

startTest

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

endTest

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

runFailed

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

clearStatus

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

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.