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 classstatic class -
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 err) 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.
-
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.
-