public abstract class AbstractTextReporter extends AbstractReporter
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
BRIEF |
protected static java.lang.String |
PLAIN |
protected static java.lang.String |
SUMMARY |
protected java.io.PrintWriter |
writer |
completedCount, errors, failures, NL, skipped, testSetStartTime| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTextReporter(java.io.PrintWriter writer,
java.lang.String format,
ReporterConfiguration reporterConfiguration) |
protected |
AbstractTextReporter(ReporterConfiguration reporterConfiguration,
java.lang.String format) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getElapsedTimeSummary(ReportEntry report) |
protected java.lang.String |
getOutput(ReportEntry report,
java.lang.String msg) |
protected java.lang.String |
getTestSetSummary(ReportEntry report) |
static boolean |
isTestSetCompletedMessage(java.lang.String message)
Check if the String passed as argument is a "test set completed" message.
|
void |
reset()
Restores the instance of the reporter, making the instance re-usable for a subsequent run in the
same thread.
|
void |
setWriter(java.io.PrintWriter writer) |
void |
testError(ReportEntry report,
java.lang.String stdOut,
java.lang.String stdErr)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testFailed(ReportEntry report,
java.lang.String stdOut,
java.lang.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 |
writeDetailMessage(java.lang.String message)
Writes a detailed message that will not necessarily be displayed in all channels.
|
void |
writeMessage(java.lang.String message)
Writes a message that will be displayed in all free-text format reporters.
|
deleteIfExisting, elapsedTimeAsString, getActualRunTime, getNumErrors, getNumFailures, getNumSkipped, getNumTests, getStackTrace, isTimedOut, runCompleted, runStarting, testAssumptionFailure, testError, testFailed, testStarting, writeFooterprotected static final java.lang.String BRIEF
protected static final java.lang.String PLAIN
protected static final java.lang.String SUMMARY
protected java.io.PrintWriter writer
protected AbstractTextReporter(ReporterConfiguration reporterConfiguration, java.lang.String format)
protected AbstractTextReporter(java.io.PrintWriter writer,
java.lang.String format,
ReporterConfiguration reporterConfiguration)
public void setWriter(java.io.PrintWriter writer)
public void writeMessage(java.lang.String message)
Reportermessage - The message to write.public void writeDetailMessage(java.lang.String message)
Reportermessage - The message to writepublic void testSucceeded(ReportEntry report)
ReportertestSucceeded in interface ReportertestSucceeded in interface ReportWritertestSucceeded in class AbstractReporterreport - The report entry to log forpublic void testSkipped(ReportEntry report)
testSkipped in interface ReportertestSkipped in interface ReportWritertestSkipped in class AbstractReporterpublic void testError(ReportEntry report, java.lang.String stdOut, java.lang.String stdErr)
ReportertestError in interface ReportertestError in interface ReportWritertestError 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, java.lang.String stdOut, java.lang.String stdErr)
ReportertestFailed in interface ReportertestFailed in interface ReportWritertestFailed 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 interface ReportWritertestSetStarting in class AbstractReporterreport - the report entry describing the testsetReporterException - When reporting failspublic void testSetCompleted(ReportEntry report) throws ReporterException
ReportertestSetCompleted in interface ReportertestSetCompleted in interface ReportWritertestSetCompleted in class AbstractReporterreport - the report entry describing the testsetReporterException - When reporting failsprotected java.lang.String getTestSetSummary(ReportEntry report)
protected java.lang.String getElapsedTimeSummary(ReportEntry report)
protected java.lang.String getOutput(ReportEntry report, java.lang.String msg)
public static boolean isTestSetCompletedMessage(java.lang.String message)
message - the message to checkpublic void reset()
Reporterreset in interface Reporterreset in interface ReportWriterreset in class AbstractReporterCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.