public class ERXBatchTestInterface extends java.lang.Object implements ERXTestListener
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ERXBatchTestInterface(java.lang.String test) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public static final org.apache.log4j.Logger log
public static final boolean SHOW_EXCEPTIONS
public static final boolean HIDE_EXCEPTIONS
protected java.lang.String _test
protected boolean _showExceptions
protected java.lang.String _errorMessage
protected ERXTestRunner aTestRunner
protected ERXTestResult testResult
protected long runTime
public void performTest(org.apache.log4j.Logger userLogger,
boolean showExceptions)
protected ERXTestResult start() throws java.lang.Exception
java.lang.Exceptionprotected ERXTestResult doRun(junit.framework.Test suite)
public void print()
protected void printErrors()
protected void printFailures()
protected void printHeader()
public ERXTestResult testResult()
public java.lang.String errorMessage()
public long runTime()
public java.lang.String test()
public boolean showExceptions()
public void addError(junit.framework.Test test,
java.lang.Throwable t)
addError in interface junit.framework.TestListenerpublic void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
addFailure in interface junit.framework.TestListenerpublic void startTest(junit.framework.Test test)
startTest in interface junit.framework.TestListenerpublic void endTest(junit.framework.Test test)
endTest in interface junit.framework.TestListenerpublic void runFailed(java.lang.String message)
runFailed in interface ERXTestListenerpublic void clearStatus()
clearStatus in interface ERXTestListenerCopyright © 2002 – 2022 Project Wonder.