public class JunitXmlFormatter extends Object implements Reporter<JunitXmlFormatter.XmlReport>
| Modifier and Type | Class and Description |
|---|---|
static class |
JunitXmlFormatter.XmlReport |
| Constructor and Description |
|---|
JunitXmlFormatter(Function<String,ReportStream> streamFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
reportBeginTestCase(JunitXmlFormatter.XmlReport report,
String name)
Signals a test case began.
|
JunitXmlFormatter.XmlReport |
reportBeginTestSuite(String name)
Signals the test suite began.
|
void |
reportEndTestCase(JunitXmlFormatter.XmlReport report,
String name,
TestResult result)
Signals a test case ended.
|
void |
reportEndTestSuite(JunitXmlFormatter.XmlReport report)
Signals a test suite ended.
|
void |
reportError(JunitXmlFormatter.XmlReport 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 JunitXmlFormatter(Function<String,ReportStream> streamFactory)
public JunitXmlFormatter.XmlReport reportBeginTestSuite(String name)
ReporterreportBeginTestSuite in interface Reporter<JunitXmlFormatter.XmlReport>name - the test suite namepublic void reportBeginTestCase(JunitXmlFormatter.XmlReport report, String name)
ReporterreportBeginTestCase in interface Reporter<JunitXmlFormatter.XmlReport>report - the reportname - the test case namepublic void reportEndTestCase(JunitXmlFormatter.XmlReport report, String name, TestResult result)
ReporterreportEndTestCase in interface Reporter<JunitXmlFormatter.XmlReport>report - the reportname - the test case nameresult - the test case resultpublic void reportError(JunitXmlFormatter.XmlReport report, Throwable err)
ReporterReporter.reportBeginTestSuite(java.lang.String)
and the Reporter.reportEndTestSuite(R).reportError in interface Reporter<JunitXmlFormatter.XmlReport>report - the reporterr - the test suite errorpublic void reportEndTestSuite(JunitXmlFormatter.XmlReport report)
ReporterreportEndTestSuite in interface Reporter<JunitXmlFormatter.XmlReport>report - the reportCopyright © 2020. All rights reserved.