public class ReporterManager extends java.lang.Object implements Reporter, RunReporter, ReportWriter
| Constructor and Description |
|---|
ReporterManager(java.util.List reports,
RunStatistics runStatisticsForThis,
SystemStreamCapturer systemStreamCapturer) |
| Modifier and Type | Method and Description |
|---|---|
void |
reset()
Restores the instance of the reporter, making the instance re-usable for a subsequent run in the
same thread.
|
void |
runCompleted()
Indicates the end of the entire test run
Only called on the first provider, and just by the ReporterFactory
|
void |
runStarting()
Indicates the start of the entire test run.
|
void |
testAssumptionFailure(ReportEntry report)
Event fired when a test assumption failure was encountered.
|
void |
testError(ReportEntry reportEntry)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testError(ReportEntry reportEntry,
java.lang.String stdOutLog,
java.lang.String stdErrLog)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testFailed(ReportEntry reportEntry)
Event fired when a test ended with a failure (anticipated problem)
|
void |
testFailed(ReportEntry reportEntry,
java.lang.String stdOutLog,
java.lang.String stdErrLog)
Event fired when a test ended with a failure (anticipated problem)
|
void |
testSetCompleted(ReportEntry report)
Indicates end of a given test-set
|
void |
testSetStarting(ReportEntry report)
Indicates the start of a given test-set
|
void |
testSkipped(ReportEntry report) |
void |
testStarting(ReportEntry report)
Event fired when a test is about to start
|
void |
testSucceeded(ReportEntry report)
Event fired when a test ended successfully
|
void |
writeDetailMessage(java.lang.String message)
Writes a detailed message that will not necessarily be displayed in all channels.
|
void |
writeFooter(java.lang.String footer) |
void |
writeMessage(java.lang.String message)
Writes a message that will be displayed in all free-text format reporters.
|
public ReporterManager(java.util.List reports,
RunStatistics runStatisticsForThis,
SystemStreamCapturer systemStreamCapturer)
public void writeMessage(java.lang.String message)
ReporterwriteMessage in interface ReporterwriteMessage in interface ReportWritermessage - The message to write.public void writeDetailMessage(java.lang.String message)
ReporterwriteDetailMessage in interface ReporterwriteDetailMessage in interface ReportWritermessage - The message to writepublic void runStarting()
RunReporterrunStarting in interface RunReporterpublic void runCompleted()
RunReporterrunCompleted in interface RunReporterpublic void writeFooter(java.lang.String footer)
writeFooter in interface ReporterwriteFooter in interface ReportWriterpublic void testSetStarting(ReportEntry report) throws ReporterException
ReportertestSetStarting in interface ReportertestSetStarting in interface ReportWriterreport - the report entry describing the testsetReporterException - When reporting failspublic void testSetCompleted(ReportEntry report)
ReportertestSetCompleted in interface ReportertestSetCompleted in interface ReportWriterreport - the report entry describing the testsetpublic void testStarting(ReportEntry report)
ReportertestStarting in interface ReportertestStarting in interface ReportWriterreport - The report entry to log forpublic void testSucceeded(ReportEntry report)
ReportertestSucceeded in interface ReportertestSucceeded in interface ReportWriterreport - The report entry to log forpublic void testError(ReportEntry reportEntry)
ReportertestError in interface ReportertestError in interface ReportWriterreportEntry - The report entry to log forpublic void testError(ReportEntry reportEntry, java.lang.String stdOutLog, java.lang.String stdErrLog)
ReportertestError in interface ReportertestError in interface ReportWriterreportEntry - The report entry to log forstdOutLog - standard output from the test casestdErrLog - error output from the test casepublic void testFailed(ReportEntry reportEntry)
ReportertestFailed in interface ReportertestFailed in interface ReportWriterreportEntry - The report entry to log forpublic void testFailed(ReportEntry reportEntry, java.lang.String stdOutLog, java.lang.String stdErrLog)
ReportertestFailed in interface ReportertestFailed in interface ReportWriterreportEntry - The report entry to log forstdOutLog - standard output from the test casestdErrLog - error output from the test casepublic void testSkipped(ReportEntry report)
testSkipped in interface ReportertestSkipped in interface ReportWriterpublic void testAssumptionFailure(ReportEntry report)
ReportertestAssumptionFailure in interface Reporterreport - The report entry to log forpublic void reset()
Reporterreset in interface Reporterreset in interface ReportWriterCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.