|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.surefire.report.TestSetRunListener
public class TestSetRunListener
Reports data for a single test set.
Constructor Summary | |
---|---|
TestSetRunListener(AbstractConsoleReporter consoleReporter,
AbstractFileReporter fileReporter,
XMLReporter xmlReporter,
Reporter reporter,
RunStatistics globalStats)
|
Method Summary | |
---|---|
void |
clearCapture()
|
String |
getAsString(List byteBufferList)
|
void |
info(String message)
|
void |
reset()
Restores the instance of the reporter, making the instance re-usable for a subsequent run in the same thread. |
void |
testAssumptionFailure(ReportEntry report)
Event fired when a test assumption failure was encountered. |
void |
testError(ReportEntry reportEntry)
Event fired when a test ended with an error (non anticipated problem) |
void |
testError(ReportEntry reportEntry,
String stdOutLog,
String stdErrLog)
Event fired when a test ended with an error (non anticipated problem) |
void |
testFailed(ReportEntry reportEntry)
Event fired when a test ended with a failure (anticipated problem) |
void |
testFailed(ReportEntry reportEntry,
String stdOutLog,
String stdErrLog)
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)
Event fired when a test is skipped |
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. |
void |
writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
Forwards process output from the running test-case into the reporting system |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestSetRunListener(AbstractConsoleReporter consoleReporter, AbstractFileReporter fileReporter, XMLReporter xmlReporter, Reporter reporter, RunStatistics globalStats)
Method Detail |
---|
public void info(String message)
info
in interface ConsoleLogger
public 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 writeTestOutput(byte[] buf, int off, int len, boolean stdout)
ConsoleOutputReceiver
writeTestOutput
in interface ConsoleOutputReceiver
buf
- the buffer to writeoff
- offsetlen
- lenstdout
- Indicates if this is stdoutpublic void testSetStarting(ReportEntry report)
Reporter
testSetStarting
in interface Reporter
testSetStarting
in interface RunListener
report
- the report entry describing the testsetpublic void clearCapture()
public void testSetCompleted(ReportEntry report)
Reporter
testSetCompleted
in interface Reporter
testSetCompleted
in interface RunListener
report
- the report entry describing the testsetpublic void testStarting(ReportEntry report)
Reporter
testStarting
in interface Reporter
testStarting
in interface RunListener
report
- The report entry to log forpublic void testSucceeded(ReportEntry report)
Reporter
testSucceeded
in interface Reporter
testSucceeded
in interface RunListener
report
- The report entry to log forpublic void testError(ReportEntry reportEntry)
RunListener
testError
in interface RunListener
reportEntry
- The report entry to log forpublic void testError(ReportEntry reportEntry, String stdOutLog, String stdErrLog)
Reporter
testError
in interface Reporter
reportEntry
- The report entry to log forstdOutLog
- standard output from the test casestdErrLog
- error output from the test casepublic void testFailed(ReportEntry reportEntry)
RunListener
testFailed
in interface RunListener
reportEntry
- The report entry to log forpublic void testFailed(ReportEntry reportEntry, String stdOutLog, String stdErrLog)
Reporter
testFailed
in interface Reporter
reportEntry
- The report entry to log forstdOutLog
- standard output from the test casestdErrLog
- error output from the test casepublic void testSkipped(ReportEntry report)
RunListener
testSkipped
in interface Reporter
testSkipped
in interface RunListener
report
- The report entry to log forpublic void testAssumptionFailure(ReportEntry report)
RunListener
testAssumptionFailure
in interface RunListener
report
- The report entry to log forpublic void reset()
Reporter
reset
in interface Reporter
public String getAsString(List byteBufferList)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |