org.apache.tools.ant.taskdefs.optional.junit
Class XMLJUnitResultFormatter
java.lang.Objectorg.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter
- JUnitResultFormatter, TestListener, 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, PROPERTIES, PROPERTY, SYSTEM_ERR, SYSTEM_OUT, TESTCASE, TESTSUITE, TESTSUITES |
void | addError(Test test, Throwable t)- Interface TestListener.
|
void | addFailure(Test test, AssertionFailedError t)- Interface TestListener for JUnit > 3.4.
|
void | addFailure(Test test, Throwable 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)- Sets the stream the formatter is supposed to write its results to.
|
void | setSystemError(String out)- This is what the test has written to System.err
|
void | setSystemOutput(String out)- This is what the test has written to System.out
|
void | startTest(Test t)- Interface TestListener.
|
void | startTestSuite(JUnitTest suite)- The whole testsuite started.
|
XMLJUnitResultFormatter
public XMLJUnitResultFormatter()
addError
public void addError(Test test,
Throwable t) Interface TestListener.
An error occurred while running the test.
addFailure
public void addFailure(Test test,
AssertionFailedError t) Interface TestListener for JUnit > 3.4.
A Test failed.
addFailure
public void addFailure(Test test,
Throwable t) Interface TestListener for JUnit <= 3.4.
A Test failed.
endTest
public void endTest(Test test)
Interface TestListener.
A Test is finished.
setOutput
public void setOutput(OutputStream out)
Sets the stream the formatter is supposed to write its results to.
- setOutput in interface JUnitResultFormatter
startTest
public void startTest(Test t)
Interface TestListener.
A new Test is started.
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.