public class TestSetRunListener extends Object implements RunListener, Reporter, ConsoleOutputReceiver, ConsoleLogger
| Constructor and Description |
|---|
TestSetRunListener(AbstractConsoleReporter consoleReporter,
AbstractFileReporter fileReporter,
XMLReporter xmlReporter,
Reporter reporter,
StatisticsReporter statisticsReporter,
RunStatistics globalStats) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCapture() |
String |
getAsString(List<ByteBuffer> 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
|
public TestSetRunListener(AbstractConsoleReporter consoleReporter, AbstractFileReporter fileReporter, XMLReporter xmlReporter, Reporter reporter, StatisticsReporter statisticsReporter, RunStatistics globalStats)
public void info(String message)
info in interface ConsoleLoggerpublic void writeMessage(String message)
ReporterwriteMessage in interface Reportermessage - The message to write.public void writeMessage(byte[] b,
int off,
int len)
writeMessage in interface Reporterpublic void writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
ConsoleOutputReceiverwriteTestOutput in interface ConsoleOutputReceiverbuf - the buffer to writeoff - offsetlen - lenstdout - Indicates if this is stdoutpublic void testSetStarting(ReportEntry report)
RunListenertestSetStarting in interface ReportertestSetStarting in interface RunListenerreport - the report entry describing the testsetpublic void clearCapture()
public void testSetCompleted(ReportEntry report)
RunListenertestSetCompleted in interface ReportertestSetCompleted in interface RunListenerreport - the report entry describing the testsetpublic void testStarting(ReportEntry report)
RunListenertestStarting in interface ReportertestStarting in interface RunListenerreport - The report entry to log forpublic void testSucceeded(ReportEntry report)
RunListenertestSucceeded in interface ReportertestSucceeded in interface RunListenerreport - The report entry to log forpublic void testError(ReportEntry reportEntry)
RunListenertestError in interface RunListenerreportEntry - The report entry to log forpublic void testError(ReportEntry reportEntry, String stdOutLog, String stdErrLog)
Reporterpublic void testFailed(ReportEntry reportEntry)
RunListenertestFailed in interface RunListenerreportEntry - The report entry to log forpublic void testFailed(ReportEntry reportEntry, String stdOutLog, String stdErrLog)
ReportertestFailed in interface ReporterreportEntry - The report entry to log forstdOutLog - standard output from the test casestdErrLog - error output from the test casepublic void testSkipped(ReportEntry report)
RunListenertestSkipped in interface ReportertestSkipped in interface RunListenerreport - The report entry to log forpublic void testAssumptionFailure(ReportEntry report)
RunListenertestAssumptionFailure in interface RunListenerreport - The report entry to log forpublic void reset()
Reporterpublic String getAsString(List<ByteBuffer> byteBufferList)
Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.