|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.surefire.report.TestConsoleOutputRunListener
public abstract class TestConsoleOutputRunListener
Attaches the currently executing test method to the thread, allowing test output to be directed to the proper test set.
Nested Class Summary | |
---|---|
static class |
TestConsoleOutputRunListener.OneThreadPerClassConsoleOutputRunListener
|
static class |
TestConsoleOutputRunListener.UnknownThreadPerClassConsoleOutputRunListener
|
Constructor Summary | |
---|---|
protected |
TestConsoleOutputRunListener(ReporterFactory reporterFactory)
|
Method Summary | |
---|---|
protected abstract void |
clearTestMethodRunListener(ReportEntry reportEntry)
|
protected abstract void |
clearTestSetRunListener(ReportEntry reportEntry)
|
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)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TestConsoleOutputRunListener(ReporterFactory reporterFactory)
Method Detail |
---|
public static TestConsoleOutputRunListener createInstance(ReporterFactory reporterFactory, boolean oneThreadPerClass)
protected abstract RunListener getTestSetRunListener(ReportEntry reportEntry)
protected abstract void clearTestSetRunListener(ReportEntry reportEntry)
protected abstract RunListener getTestMethodRunListener(ReportEntry report)
protected abstract void clearTestMethodRunListener(ReportEntry reportEntry)
protected abstract ConsoleOutputReceiver getConsoleOutputReceiver()
protected ReporterFactory getReporterFactory()
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) throws ReporterException
RunListener
testSetStarting
in interface RunListener
report
- the report entry describing the testset
ReporterException
- When reporting failspublic void testSetCompleted(ReportEntry report) throws ReporterException
RunListener
testSetCompleted
in interface RunListener
report
- the report entry describing the testset
ReporterException
- When reporting failspublic void testStarting(ReportEntry report)
RunListener
testStarting
in interface RunListener
report
- The report entry to log forpublic void testSucceeded(ReportEntry report)
RunListener
testSucceeded
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 testError(ReportEntry report)
RunListener
testError
in interface RunListener
report
- The report entry to log forpublic void testFailed(ReportEntry report)
RunListener
testFailed
in interface RunListener
report
- The report entry to log forpublic void testSkipped(ReportEntry report)
testSkipped
in interface RunListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |