|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.surefire.report.ConsoleOutputDirectReporter
public class ConsoleOutputDirectReporter
Outputs test system out/system err directly to the console
Just a step on the road to getting the separation of reporting concerns operating properly.
Constructor Summary | |
---|---|
ConsoleOutputDirectReporter(PrintStream reportsDirectory)
|
Method Summary | |
---|---|
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 reportEntry)
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)
|
void |
writeMessage(String message)
Writes a message that will be displayed in all free-text format reporters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleOutputDirectReporter(PrintStream reportsDirectory)
Method Detail |
---|
public void testSetStarting(ReportEntry reportEntry)
Reporter
testSetStarting
in interface Reporter
reportEntry
- the report entry describing the testsetpublic void testSetCompleted(ReportEntry report)
Reporter
testSetCompleted
in interface Reporter
report
- the report entry describing the testsetpublic 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
testError
in interface Reporter
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
report
- The report entry to log forstdOut
- standard output from the test casestdErr
- error output from the test casepublic void writeMessage(String message)
Reporter
writeMessage
in interface Reporter
message
- The message to write.public void writeMessage(byte[] b, int off, int len)
writeMessage
in interface Reporter
public void reset()
Reporter
reset
in interface Reporter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |