|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.surefire.report.AbstractReporter org.apache.maven.surefire.report.AbstractTextReporter
public abstract class AbstractTextReporter
Text based reporter.
Field Summary | |
---|---|
protected static String |
BRIEF
|
protected static String |
PLAIN
|
protected static String |
SUMMARY
|
protected PrintWriter |
writer
|
Constructor Summary | |
---|---|
protected |
AbstractTextReporter(PrintWriter writer,
String format,
ReporterConfiguration reporterConfiguration)
|
protected |
AbstractTextReporter(ReporterConfiguration reporterConfiguration,
String format)
|
Method Summary | |
---|---|
protected String |
getElapsedTimeSummary(ReportEntry report)
|
protected String |
getOutput(ReportEntry report,
String msg)
|
protected String |
getTestSetSummary(ReportEntry report)
|
static boolean |
isTestSetCompletedMessage(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(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 |
writeDetailMessage(String message)
Writes a detailed message that will not necessarily be displayed in all channels. |
void |
writeMessage(String message)
Writes a message that will be displayed in all free-text format reporters. |
Methods inherited from class org.apache.maven.surefire.report.AbstractReporter |
---|
runCompleted, runStarting, testAssumptionFailure, testError, testFailed, testStarting, writeFooter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String BRIEF
protected static final String PLAIN
protected static final String SUMMARY
protected PrintWriter writer
Constructor Detail |
---|
protected AbstractTextReporter(ReporterConfiguration reporterConfiguration, String format)
protected AbstractTextReporter(PrintWriter writer, String format, ReporterConfiguration reporterConfiguration)
Method Detail |
---|
public void setWriter(PrintWriter writer)
public void writeMessage(String message)
Reporter
message
- The message to write.public void writeDetailMessage(String message)
Reporter
message
- The message to writepublic void testSucceeded(ReportEntry report)
Reporter
testSucceeded
in interface Reporter
testSucceeded
in class AbstractReporter
report
- The report entry to log forpublic void testSkipped(ReportEntry report)
testSkipped
in interface Reporter
testSkipped
in class AbstractReporter
public void testError(ReportEntry report, String stdOut, String stdErr)
Reporter
testError
in interface Reporter
testError
in class AbstractReporter
report
- 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)
Reporter
testFailed
in interface Reporter
testFailed
in class AbstractReporter
report
- The report entry to log forstdOut
- standard output from the test casestdErr
- error output from the test casepublic void testSetStarting(ReportEntry report) throws ReporterException
Reporter
testSetStarting
in interface Reporter
testSetStarting
in class AbstractReporter
report
- the report entry describing the testset
ReporterException
- When reporting failspublic void testSetCompleted(ReportEntry report) throws ReporterException
Reporter
testSetCompleted
in interface Reporter
testSetCompleted
in class AbstractReporter
report
- the report entry describing the testset
ReporterException
- When reporting failsprotected String getTestSetSummary(ReportEntry report)
protected String getElapsedTimeSummary(ReportEntry report)
protected String getOutput(ReportEntry report, String msg)
public static boolean isTestSetCompletedMessage(String message)
message
- the message to check
public void reset()
Reporter
reset
in interface Reporter
reset
in class AbstractReporter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |