Package org.glassfish.pfl.test
Interface JUnitReportWriter
- All Known Implementing Classes:
XMLJUnitReportWriter
public interface JUnitReportWriter
This Interface describes classes that format the results of a JUnit
testrun.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
An error occurred.void
A failure occurred.void
A test ended.void
endTest
(JUnitReportWriter.TestDescription test, long duration) A test ended.The whole testsuite ended.void
setOutput
(OutputStream out) Sets the stream the formatter is supposed to write its results to.void
setSystemError
(String err) This is what the test has written to System.errvoid
setSystemOutput
(String out) This is what the test has written to System.outvoid
A test started.void
startTestSuite
(String name, Properties props) The whole testsuite started.
-
Method Details
-
startTestSuite
The whole testsuite started.- Parameters:
name
- the suite.
-
setOutput
Sets the stream the formatter is supposed to write its results to.- Parameters:
out
- the output stream to use.
-
setSystemOutput
This is what the test has written to System.out- Parameters:
out
- the string to write.
-
setSystemError
This is what the test has written to System.err- Parameters:
err
- the string to write.
-
startTest
A test started. -
addError
An error occurred. -
addFailure
A failure occurred. -
endTest
A test ended. -
endTest
A test ended. Here we supply the duration, in case the duration is not determined by the [ startTest, endTest ] interval. -
endTestSuite
JUnitReportWriter.TestCounts endTestSuite()The whole testsuite ended.
-