junit.framework.TestListener, JUnitResultFormatter, JUnitTaskMirror.JUnitResultFormatterMirrorpublic class TearDownOnVmCrash extends java.lang.Object implements JUnitResultFormatter
This formatter has some limitations, for details see the <junit> task's manual.
| Constructor | Description |
|---|---|
TearDownOnVmCrash() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addError(junit.framework.Test fakeTest,
java.lang.Throwable t) |
Only invoke tearDown if the suite is known and not the dummy
test we get when a Batch fails and the error is an actual
error generated by Ant.
|
void |
addFailure(junit.framework.Test test,
java.lang.Throwable t) |
|
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t) |
|
void |
endTest(junit.framework.Test test) |
|
void |
endTestSuite(JUnitTest suite) |
The whole testsuite ended.
|
void |
setOutput(java.io.OutputStream out) |
Sets the stream the formatter is supposed to write its results to.
|
void |
setSystemError(java.lang.String err) |
This is what the test has written to System.err
|
void |
setSystemOutput(java.lang.String out) |
This is what the test has written to System.out
|
void |
startTest(junit.framework.Test test) |
|
void |
startTestSuite(JUnitTest suite) |
Records the suite's name to later determine the class to invoke
tearDown on.
|
public void startTestSuite(JUnitTest suite)
startTestSuite in interface JUnitResultFormattersuite - the suite.public void addError(junit.framework.Test fakeTest,
java.lang.Throwable t)
addError in interface junit.framework.TestListenerpublic void addFailure(junit.framework.Test test,
java.lang.Throwable t)
public 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 endTestSuite(JUnitTest suite)
JUnitResultFormatterendTestSuite in interface JUnitResultFormattersuite - the suite.public void setOutput(java.io.OutputStream out)
JUnitResultFormattersetOutput in interface JUnitResultFormattersetOutput in interface JUnitTaskMirror.JUnitResultFormatterMirrorout - the output stream to use.public void setSystemOutput(java.lang.String out)
JUnitResultFormattersetSystemOutput in interface JUnitResultFormatterout - the string to write.public void setSystemError(java.lang.String err)
JUnitResultFormattersetSystemError in interface JUnitResultFormattererr - the string to write.