public abstract class TestConsoleOutputRunListener extends Object implements RunListener, ConsoleOutputReceiver
| Modifier and Type | Class and Description |
|---|---|
static class |
TestConsoleOutputRunListener.OneThreadPerClassConsoleOutputRunListener |
static class |
TestConsoleOutputRunListener.UnknownThreadPerClassConsoleOutputRunListener |
| Modifier | Constructor and Description |
|---|---|
protected |
TestConsoleOutputRunListener(ReporterFactory reporterFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
clearTestMethodRunListener() |
protected abstract void |
clearTestSetRunListener() |
static TestConsoleOutputRunListener |
createInstance(ReporterFactory reporterFactory,
boolean oneThreadPerClass) |
protected abstract ConsoleOutputReceiver |
getConsoleOutputReceiver() |
protected ReporterFactory |
getReporterFactory() |
protected abstract RunListener |
getTestMethodRunListener(ReportEntry report) |
protected abstract RunListener |
getTestSetRunListener(ReportEntry reportEntry) |
void |
testAssumptionFailure(ReportEntry report)
Event fired when a test assumption failure was encountered.
|
void |
testError(ReportEntry report)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testFailed(ReportEntry report)
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 |
writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
Forwards process output from the running test-case into the reporting system
|
protected TestConsoleOutputRunListener(ReporterFactory reporterFactory)
public static TestConsoleOutputRunListener createInstance(ReporterFactory reporterFactory, boolean oneThreadPerClass)
protected abstract RunListener getTestSetRunListener(ReportEntry reportEntry)
protected abstract void clearTestSetRunListener()
protected abstract RunListener getTestMethodRunListener(ReportEntry report)
protected abstract void clearTestMethodRunListener()
protected abstract ConsoleOutputReceiver getConsoleOutputReceiver()
protected ReporterFactory getReporterFactory()
public 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) throws ReporterException
RunListenertestSetStarting in interface RunListenerreport - the report entry describing the testsetReporterException - When reporting failspublic void testSetCompleted(ReportEntry report) throws ReporterException
RunListenertestSetCompleted in interface RunListenerreport - the report entry describing the testsetReporterException - When reporting failspublic void testStarting(ReportEntry report)
RunListenertestStarting in interface RunListenerreport - The report entry to log forpublic void testSucceeded(ReportEntry report)
RunListenertestSucceeded in interface RunListenerreport - The report entry to log forpublic void testAssumptionFailure(ReportEntry report)
RunListenertestAssumptionFailure in interface RunListenerreport - The report entry to log forpublic void testError(ReportEntry report)
RunListenertestError in interface RunListenerreport - The report entry to log forpublic void testFailed(ReportEntry report)
RunListenertestFailed in interface RunListenerreport - The report entry to log forpublic void testSkipped(ReportEntry report)
RunListenertestSkipped in interface RunListenerreport - The report entry to log forCopyright © 2004-2012 Apache Software Foundation. All Rights Reserved.