public abstract class AbstractTextReporter extends AbstractReporter
| Modifier and Type | Field and Description |
|---|---|
protected PrintWriter |
writer |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTextReporter(boolean trimStackTrace,
String format) |
protected |
AbstractTextReporter(PrintWriter writer,
boolean trimStackTrace,
String format) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getElapsedTimeSummary(ReportEntry report) |
protected String |
getOutput(ReportEntry report,
String msg) |
protected String |
getTestSetSummary(ReportEntry report) |
void |
reset()
Restores the instance of the reporter, making the instance re-usable for a subsequent run in the
same thread.
|
void |
setWriter(PrintWriter writer) |
void |
testError(ReportEntry report,
String stdOut,
String stdErr)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testFailed(ReportEntry report,
String stdOut,
String stdErr)
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 |
testSucceeded(ReportEntry report)
Event fired when a test ended successfully
|
void |
writeMessage(String message)
Writes a message that will be displayed in all free-text format reporters.
|
testStarting, writeMessageprotected PrintWriter writer
protected AbstractTextReporter(boolean trimStackTrace,
String format)
protected AbstractTextReporter(PrintWriter writer, boolean trimStackTrace, String format)
public void setWriter(PrintWriter writer)
public void writeMessage(String message)
Reportermessage - The message to write.public void testSucceeded(ReportEntry report)
ReportertestSucceeded in interface ReportertestSucceeded in class AbstractReporterreport - The report entry to log forpublic void testSkipped(ReportEntry report)
testSkipped in interface ReportertestSkipped in class AbstractReporterpublic void testError(ReportEntry report, String stdOut, String stdErr)
ReportertestError in interface ReportertestError in class AbstractReporterreport - The report entry to log forstdOut - standard output from the test casestdErr - error output from the test casepublic void testFailed(ReportEntry report, String stdOut, String stdErr)
ReportertestFailed in interface ReportertestFailed in class AbstractReporterreport - The report entry to log forstdOut - standard output from the test casestdErr - error output from the test casepublic void testSetStarting(ReportEntry report) throws ReporterException
ReportertestSetStarting in interface ReportertestSetStarting in class AbstractReporterreport - the report entry describing the testsetReporterException - When reporting failspublic void testSetCompleted(ReportEntry report) throws ReporterException
ReportertestSetCompleted in interface ReportertestSetCompleted in class AbstractReporterreport - the report entry describing the testsetReporterException - When reporting failsprotected String getTestSetSummary(ReportEntry report)
protected String getElapsedTimeSummary(ReportEntry report)
protected String getOutput(ReportEntry report, String msg)
public void reset()
Reporterreset in interface Reporterreset in class AbstractReporterCopyright © 2004-2012 Apache Software Foundation. All Rights Reserved.