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)
RunListenertestSetStarting in interface RunListenerdescription - the report entry describing the testsetpublic void testSetCompleted(ReportEntry result)
RunListenertestSetCompleted in interface RunListenerresult - the report entry describing the testsetpublic void testFailed(ReportEntry failure)
RunListenertestFailed in interface RunListenerfailure - The report entry to log forpublic void testError(ReportEntry failure)
RunListenertestError in interface RunListenerfailure - The report entry to log forpublic void testSkipped(ReportEntry description)
RunListenertestSkipped in interface RunListenerdescription - The report entry to log forpublic void testAssumptionFailure(ReportEntry failure)
RunListenertestAssumptionFailure in interface RunListenerfailure - The report entry to log forpublic void testStarting(ReportEntry description)
RunListenertestStarting in interface RunListenerdescription - The report entry to log forpublic void testSucceeded(ReportEntry report)
RunListenertestSucceeded in interface RunListenerreport - 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
TestSetFailedExceptionpublic void writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
ConsoleOutputReceiverwriteTestOutput in interface ConsoleOutputReceiverbuf - the buffer to writeoff - offsetlen - lenstdout - Indicates if this is stdoutCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.