public class TearDownOnVmCrash extends java.lang.Object implements JUnitResultFormatter
This formatter has some limitations, for details see the <junit> task's manual.
Constructor and Description |
---|
TearDownOnVmCrash() |
Modifier and Type | Method and 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,
junit.framework.AssertionFailedError t) |
void |
addFailure(junit.framework.Test test,
java.lang.Throwable 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 JUnitResultFormatter
suite
- the suite.public void addError(junit.framework.Test fakeTest, java.lang.Throwable t)
addError
in interface junit.framework.TestListener
public 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.TestListener
public void startTest(junit.framework.Test test)
startTest
in interface junit.framework.TestListener
public void endTest(junit.framework.Test test)
endTest
in interface junit.framework.TestListener
public void endTestSuite(JUnitTest suite)
JUnitResultFormatter
endTestSuite
in interface JUnitResultFormatter
suite
- the suite.public void setOutput(java.io.OutputStream out)
JUnitResultFormatter
setOutput
in interface JUnitResultFormatter
setOutput
in interface JUnitTaskMirror.JUnitResultFormatterMirror
out
- the output stream to use.public void setSystemOutput(java.lang.String out)
JUnitResultFormatter
setSystemOutput
in interface JUnitResultFormatter
out
- the string to write.public void setSystemError(java.lang.String err)
JUnitResultFormatter
setSystemError
in interface JUnitResultFormatter
err
- the string to write.