public abstract class ConcurrentRunListener extends Object implements RunListener, ConsoleOutputReceiver
for details about regular junit run listening
Modifier and Type | Method and Description |
---|---|
protected abstract void |
checkIfTestSetCanBeReported(TestSet testSetForTest) |
static ConcurrentRunListener |
createInstance(Map<String,TestSet> classMethodCounts,
ReporterFactory reporterManagerFactory,
boolean parallelClasses,
boolean parallelBoth,
ConsoleLogger consoleLogger) |
void |
testAssumptionFailure(ReportEntry failure)
Event fired when a test assumption failure was encountered.
|
void |
testError(ReportEntry failure)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testFailed(ReportEntry failure)
Event fired when a test ended with a failure (anticipated problem)
|
void |
testSetCompleted(ReportEntry result)
Indicates end of a given test-set
|
void |
testSetStarting(ReportEntry description)
Indicates the start of a given test-set
|
void |
testSkipped(ReportEntry description)
Event fired when a test is skipped
|
void |
testStarting(ReportEntry description)
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
|
public void testSetStarting(ReportEntry description)
RunListener
testSetStarting
in interface RunListener
description
- the report entry describing the testsetpublic void testSetCompleted(ReportEntry result)
RunListener
testSetCompleted
in interface RunListener
result
- the report entry describing the testsetpublic void testFailed(ReportEntry failure)
RunListener
testFailed
in interface RunListener
failure
- The report entry to log forpublic void testError(ReportEntry failure)
RunListener
testError
in interface RunListener
failure
- The report entry to log forpublic void testSkipped(ReportEntry description)
RunListener
testSkipped
in interface RunListener
description
- The report entry to log forpublic void testAssumptionFailure(ReportEntry failure)
RunListener
testAssumptionFailure
in interface RunListener
failure
- The report entry to log forpublic void testStarting(ReportEntry description)
RunListener
testStarting
in interface RunListener
description
- The report entry to log forpublic void testSucceeded(ReportEntry report)
RunListener
testSucceeded
in interface RunListener
report
- The report entry to log forprotected abstract void checkIfTestSetCanBeReported(TestSet testSetForTest)
public static ConcurrentRunListener createInstance(Map<String,TestSet> classMethodCounts, ReporterFactory reporterManagerFactory, boolean parallelClasses, boolean parallelBoth, ConsoleLogger consoleLogger) throws TestSetFailedException
TestSetFailedException
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 stdoutCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.