public class SimpleFormatter extends Object implements Reporter<SimpleFormatter.ReportImpl>
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleFormatter.ReportImpl |
| Constructor and Description |
|---|
SimpleFormatter(Function<String,ReportStream> streamFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
reportBeginTestCase(SimpleFormatter.ReportImpl report,
String name)
Signals a test case began.
|
SimpleFormatter.ReportImpl |
reportBeginTestSuite(String name)
Signals the test suite began.
|
void |
reportEndTestCase(SimpleFormatter.ReportImpl report,
String name,
TestResult result)
Signals a test case ended.
|
void |
reportEndTestSuite(SimpleFormatter.ReportImpl report)
Signals a test suite ended.
|
void |
reportError(SimpleFormatter.ReportImpl report,
Throwable err)
Report a global test suite error, it can be called mulitple times between the
Reporter.reportBeginTestSuite(java.lang.String)
and the Reporter.reportEndTestSuite(R). |
public SimpleFormatter(Function<String,ReportStream> streamFactory)
public SimpleFormatter.ReportImpl reportBeginTestSuite(String name)
ReporterreportBeginTestSuite in interface Reporter<SimpleFormatter.ReportImpl>name - the test suite namepublic void reportBeginTestCase(SimpleFormatter.ReportImpl report, String name)
ReporterreportBeginTestCase in interface Reporter<SimpleFormatter.ReportImpl>report - the reportname - the test case namepublic void reportEndTestCase(SimpleFormatter.ReportImpl report, String name, TestResult result)
ReporterreportEndTestCase in interface Reporter<SimpleFormatter.ReportImpl>report - the reportname - the test case nameresult - the test case resultpublic void reportError(SimpleFormatter.ReportImpl report, Throwable err)
ReporterReporter.reportBeginTestSuite(java.lang.String)
and the Reporter.reportEndTestSuite(R).reportError in interface Reporter<SimpleFormatter.ReportImpl>report - the reporterr - the test suite errorpublic void reportEndTestSuite(SimpleFormatter.ReportImpl report)
ReporterreportEndTestSuite in interface Reporter<SimpleFormatter.ReportImpl>report - the reportCopyright © 2020. All rights reserved.