org.apache.tools.ant.taskdefs.optional.junit
public class PlainJUnitResultFormatter extends Object implements JUnitResultFormatter
| Constructor Summary | |
|---|---|
| PlainJUnitResultFormatter() No arg constructor | |
| Method Summary | |
|---|---|
| void | addError(Test test, Throwable t)
Interface TestListener.
|
| void | addFailure(Test test, Throwable t)
Interface TestListener for JUnit <= 3.4.
|
| void | addFailure(Test test, AssertionFailedError t)
Interface TestListener for JUnit > 3.4.
|
| void | endTest(Test test)
Interface TestListener.
|
| void | endTestSuite(JUnitTest suite)
The whole testsuite ended. |
| void | setOutput(OutputStream out) {@inheritDoc }. |
| void | setSystemError(String err) {@inheritDoc }. |
| void | setSystemOutput(String out) {@inheritDoc }. |
| void | startTest(Test t)
Interface TestListener.
|
| void | startTestSuite(JUnitTest suite)
The whole testsuite started. |
An error occurred while running the test.
Parameters: test the test. t the exception.
A Test failed.
Parameters: test the test. t the exception.
A Test failed.
Parameters: test the test. t the assertion that failed.
A Test is finished.
Parameters: test the test.
Parameters: suite the test suite
Throws: BuildException if unable to write the output
A new Test is started.
Parameters: t the test.
Parameters: suite the test suite
Throws: BuildException if unable to write the output