public interface JUnitReportWriter
Modifier and Type | Interface and Description |
---|---|
static class |
JUnitReportWriter.TestCounts |
static class |
JUnitReportWriter.TestDescription |
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.
|
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 err)
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 test)
A test started.
|
void |
startTestSuite(java.lang.String name,
java.util.Properties props)
The whole testsuite started.
|
void startTestSuite(java.lang.String name, java.util.Properties props)
suite
- the suite.void setOutput(java.io.OutputStream out)
out
- the output stream to use.void setSystemOutput(java.lang.String out)
out
- the string to write.void setSystemError(java.lang.String err)
err
- the string to write.void startTest(JUnitReportWriter.TestDescription test)
void addError(JUnitReportWriter.TestDescription test, java.lang.Throwable t)
void addFailure(JUnitReportWriter.TestDescription test, java.lang.Throwable t)
void endTest(JUnitReportWriter.TestDescription test)
void endTest(JUnitReportWriter.TestDescription test, long duration)
JUnitReportWriter.TestCounts endTestSuite()
suite
- the suite.