org.apache.tools.ant.taskdefs.optional.junit
Class XMLJUnitResultFormatter
java.lang.Objectorg.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter
- JUnitResultFormatter, TestListener, JUnitTaskMirror.JUnitResultFormatterMirror, XMLConstants
public class XMLJUnitResultFormatter
extends java.lang.Object
Prints XML output of the test to a specified Writer.
ATTR_CLASSNAME, ATTR_ERRORS, ATTR_FAILURES, ATTR_ID, ATTR_MESSAGE, ATTR_NAME, ATTR_PACKAGE, ATTR_TESTS, ATTR_TIME, ATTR_TYPE, ATTR_VALUE, ERROR, FAILURE, HOSTNAME, PROPERTIES, PROPERTY, SYSTEM_ERR, SYSTEM_OUT, TESTCASE, TESTSUITE, TESTSUITES, TIMESTAMP |
XMLJUnitResultFormatter
public XMLJUnitResultFormatter()
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 error.
addFailure
public void addFailure(Test test,
AssertionFailedError t) Interface TestListener for JUnit > 3.4.
A Test failed.
test - the test.t - the assertion.
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.