public class XMLJUnitReportWriter extends java.lang.Object implements JUnitReportWriter, XMLConstants
FormatterElement
JUnitReportWriter.TestCounts, JUnitReportWriter.TestDescription
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
Constructor and Description |
---|
XMLJUnitReportWriter()
No arg constructor.
|
XMLJUnitReportWriter(boolean filter) |
Modifier and Type | Method and Description |
---|---|
void |
addError(JUnitReportWriter.TestDescription test,
java.lang.Throwable t)
An error occurred.
|
void |
addFailure(JUnitReportWriter.TestDescription test,
java.lang.Throwable t)
A failure occurred.
|
void |
endTest(JUnitReportWriter.TestDescription test)
A test ended.
|
void |
endTest(JUnitReportWriter.TestDescription test,
long duration)
A test ended.
|
org.w3c.dom.Element |
endTestHelper(JUnitReportWriter.TestDescription test) |
JUnitReportWriter.TestCounts |
endTestSuite()
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 out)
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(JUnitReportWriter.TestDescription t)
A test started.
|
void |
startTestSuite(java.lang.String name,
java.util.Properties props)
The whole testsuite started.
|
public XMLJUnitReportWriter()
public XMLJUnitReportWriter(boolean filter)
public void setOutput(java.io.OutputStream out)
JUnitReportWriter
setOutput
in interface JUnitReportWriter
out
- the output stream to use.public void setSystemOutput(java.lang.String out)
JUnitReportWriter
setSystemOutput
in interface JUnitReportWriter
out
- the string to write.public void setSystemError(java.lang.String out)
JUnitReportWriter
setSystemError
in interface JUnitReportWriter
out
- the string to write.public void startTestSuite(java.lang.String name, java.util.Properties props)
JUnitReportWriter
startTestSuite
in interface JUnitReportWriter
public JUnitReportWriter.TestCounts endTestSuite()
JUnitReportWriter
endTestSuite
in interface JUnitReportWriter
public void startTest(JUnitReportWriter.TestDescription t)
JUnitReportWriter
startTest
in interface JUnitReportWriter
public void endTest(JUnitReportWriter.TestDescription test, long duration)
JUnitReportWriter
endTest
in interface JUnitReportWriter
public void endTest(JUnitReportWriter.TestDescription test)
JUnitReportWriter
endTest
in interface JUnitReportWriter
public org.w3c.dom.Element endTestHelper(JUnitReportWriter.TestDescription test)
public void addFailure(JUnitReportWriter.TestDescription test, java.lang.Throwable t)
JUnitReportWriter
addFailure
in interface JUnitReportWriter
public void addError(JUnitReportWriter.TestDescription test, java.lang.Throwable t)
JUnitReportWriter
addError
in interface JUnitReportWriter