public abstract class AbstractReporter extends Object implements Reporter
Modifier | Constructor and Description |
---|---|
protected |
AbstractReporter(boolean trimStackTrace) |
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 |
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 |
testStarting(ReportEntry report)
Event fired when a test is about to start
|
void |
testSucceeded(ReportEntry report)
Event fired when a test ended successfully
|
void |
writeMessage(byte[] b,
int off,
int len) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeMessage
public void writeMessage(byte[] b, int off, int len)
writeMessage
in interface Reporter
public void testSetStarting(ReportEntry report) throws ReporterException
Reporter
testSetStarting
in interface Reporter
report
- the report entry describing the testsetReporterException
- When reporting failspublic void testSetCompleted(ReportEntry report) throws ReporterException
Reporter
testSetCompleted
in interface Reporter
report
- the report entry describing the testsetReporterException
- When reporting failspublic void testStarting(ReportEntry report)
Reporter
testStarting
in interface Reporter
report
- The report entry to log forpublic void testSucceeded(ReportEntry report)
Reporter
testSucceeded
in interface Reporter
report
- The report entry to log forpublic void testSkipped(ReportEntry report)
testSkipped
in interface Reporter
public void testError(ReportEntry report, String stdOut, String stdErr)
Reporter
public void testFailed(ReportEntry report, String stdOut, String stdErr)
Reporter
testFailed
in interface Reporter
report
- The report entry to log forstdOut
- standard output from the test casestdErr
- error output from the test caseCopyright © 2004-2012 Apache Software Foundation. All Rights Reserved.