public class XMLJUnitReportWriter extends Object implements JUnitReportWriter, XMLConstants
FormatterElementJUnitReportWriter.TestCounts, JUnitReportWriter.TestDescriptionATTR_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,
Throwable t)
An error occurred.
|
void |
addFailure(JUnitReportWriter.TestDescription test,
Throwable t)
A failure occurred.
|
void |
endTest(JUnitReportWriter.TestDescription test)
A test ended.
|
void |
endTest(JUnitReportWriter.TestDescription test,
long duration)
A test ended.
|
Element |
endTestHelper(JUnitReportWriter.TestDescription test) |
JUnitReportWriter.TestCounts |
endTestSuite()
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(JUnitReportWriter.TestDescription t)
A test started.
|
void |
startTestSuite(String name,
Properties props)
The whole testsuite started.
|
public XMLJUnitReportWriter()
public XMLJUnitReportWriter(boolean filter)
public void setOutput(OutputStream out)
JUnitReportWritersetOutput in interface JUnitReportWriterout - the output stream to use.public void setSystemOutput(String out)
JUnitReportWritersetSystemOutput in interface JUnitReportWriterout - the string to write.public void setSystemError(String out)
JUnitReportWritersetSystemError in interface JUnitReportWriterout - the string to write.public void startTestSuite(String name, Properties props)
JUnitReportWriterstartTestSuite in interface JUnitReportWriterpublic JUnitReportWriter.TestCounts endTestSuite()
JUnitReportWriterendTestSuite in interface JUnitReportWriterpublic void startTest(JUnitReportWriter.TestDescription t)
JUnitReportWriterstartTest in interface JUnitReportWriterpublic void endTest(JUnitReportWriter.TestDescription test, long duration)
JUnitReportWriterendTest in interface JUnitReportWriterpublic void endTest(JUnitReportWriter.TestDescription test)
JUnitReportWriterendTest in interface JUnitReportWriterpublic Element endTestHelper(JUnitReportWriter.TestDescription test)
public void addFailure(JUnitReportWriter.TestDescription test, Throwable t)
JUnitReportWriteraddFailure in interface JUnitReportWriterpublic void addError(JUnitReportWriter.TestDescription test, Throwable t)
JUnitReportWriteraddError in interface JUnitReportWriterCopyright © 2011–2018 Eclipse Foundation. All rights reserved.