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,
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.
|
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 err)
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 test)
A test started.
|
void |
startTestSuite(String name,
Properties props)
The whole testsuite started.
|
void startTestSuite(String name, Properties props)
suite - the suite.void setOutput(OutputStream out)
out - the output stream to use.void setSystemOutput(String out)
out - the string to write.void setSystemError(String err)
err - the string to write.void startTest(JUnitReportWriter.TestDescription test)
void addError(JUnitReportWriter.TestDescription test, Throwable t)
void addFailure(JUnitReportWriter.TestDescription test, Throwable t)
void endTest(JUnitReportWriter.TestDescription test)
void endTest(JUnitReportWriter.TestDescription test, long duration)
JUnitReportWriter.TestCounts endTestSuite()
suite - the suite.Copyright © 2018 Oracle. All rights reserved.