org.apache.tools.ant.taskdefs.optional.junit
Class PlainJUnitResultFormatter
java.lang.Object
org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter
- JUnitResultFormatter, TestListener, JUnitTaskMirror.JUnitResultFormatterMirror
public class PlainJUnitResultFormatter
extends java.lang.Object
Prints plain text output of the test to a specified Writer.
PlainJUnitResultFormatter
public PlainJUnitResultFormatter()
No arg constructor
addError
public void addError(Test test,
Throwable t)
Interface TestListener.
An error occurred while running the test.
test
- the test.t
- the exception.
addFailure
public void addFailure(Test test,
AssertionFailedError t)
Interface TestListener for JUnit > 3.4.
A Test failed.
test
- the test.t
- the assertion that failed.
addFailure
public void addFailure(Test test,
Throwable t)
Interface TestListener for JUnit <= 3.4.
A Test failed.
test
- the test.t
- the exception.
endTest
public void endTest(Test test)
Interface TestListener.
A Test is finished.
startTest
public void startTest(Test t)
Interface TestListener.
A new Test is started.