Class XMLJUnitReportWriter
java.lang.Object
org.glassfish.pfl.test.XMLJUnitReportWriter
- All Implemented Interfaces:
JUnitReportWriter, XMLConstants
Prints XML output of the test to a specified Writer.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface JUnitReportWriter
JUnitReportWriter.TestCounts, JUnitReportWriter.TestDescription -
Field Summary
Fields inherited from interface XMLConstants
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAn error occurred.voidA failure occurred.voidA test ended.voidendTest(JUnitReportWriter.TestDescription test, long duration) A test ended.The whole testsuite ended.voidsetOutput(OutputStream out) Sets the stream the formatter is supposed to write its results to.voidsetSystemError(String out) This is what the test has written to System.errvoidsetSystemOutput(String out) This is what the test has written to System.outvoidA test started.voidstartTestSuite(String name, Properties props) The whole testsuite started.
-
Constructor Details
-
XMLJUnitReportWriter
public XMLJUnitReportWriter()No arg constructor. -
XMLJUnitReportWriter
public XMLJUnitReportWriter(boolean filter)
-
-
Method Details
-
setOutput
Description copied from interface:JUnitReportWriterSets the stream the formatter is supposed to write its results to.- Specified by:
setOutputin interfaceJUnitReportWriter- Parameters:
out- the output stream to use.
-
setSystemOutput
Description copied from interface:JUnitReportWriterThis is what the test has written to System.out- Specified by:
setSystemOutputin interfaceJUnitReportWriter- Parameters:
out- the string to write.
-
setSystemError
Description copied from interface:JUnitReportWriterThis is what the test has written to System.err- Specified by:
setSystemErrorin interfaceJUnitReportWriter- Parameters:
out- the string to write.
-
startTestSuite
Description copied from interface:JUnitReportWriterThe whole testsuite started.- Specified by:
startTestSuitein interfaceJUnitReportWriter- Parameters:
name- the suite.
-
endTestSuite
Description copied from interface:JUnitReportWriterThe whole testsuite ended.- Specified by:
endTestSuitein interfaceJUnitReportWriter
-
startTest
Description copied from interface:JUnitReportWriterA test started.- Specified by:
startTestin interfaceJUnitReportWriter
-
endTest
Description copied from interface:JUnitReportWriterA test ended. Here we supply the duration, in case the duration is not determined by the [ startTest, endTest ] interval.- Specified by:
endTestin interfaceJUnitReportWriter
-
endTest
Description copied from interface:JUnitReportWriterA test ended.- Specified by:
endTestin interfaceJUnitReportWriter
-
endTestHelper
-
addFailure
Description copied from interface:JUnitReportWriterA failure occurred.- Specified by:
addFailurein interfaceJUnitReportWriter
-
addError
Description copied from interface:JUnitReportWriterAn error occurred.- Specified by:
addErrorin interfaceJUnitReportWriter
-