Class ConcurrentRunListener
- java.lang.Object
-
- org.apache.maven.surefire.junitcore.ConcurrentRunListener
-
- All Implemented Interfaces:
org.apache.maven.surefire.report.ConsoleOutputReceiver,org.apache.maven.surefire.report.RunListener
- Direct Known Subclasses:
ClassesParallelRunListener,MethodsParallelRunListener
public abstract class ConcurrentRunListener extends java.lang.Object implements org.apache.maven.surefire.report.RunListener, org.apache.maven.surefire.report.ConsoleOutputReceiverHandles responses from concurrent junit
Stuff to remember about JUnit threading: parallel=classes; beforeClass/afterClass, constructor and all tests method run on same thread parallel=methods; beforeClass/afterClass run on main thread, constructor + each test method run on same thread parallel=both; same as parallel=methods- Author:
- Kristian Rosenvold
- See Also:
for details about regular junit run listening
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcheckIfTestSetCanBeReported(TestSet testSetForTest)static ConcurrentRunListenercreateInstance(java.util.Map<java.lang.String,TestSet> classMethodCounts, org.apache.maven.surefire.report.ReporterFactory reporterFactory, boolean parallelClasses, boolean parallelBoth, org.apache.maven.surefire.report.ConsoleStream consoleStream)voidtestAssumptionFailure(org.apache.maven.surefire.report.ReportEntry failure)voidtestError(org.apache.maven.surefire.report.ReportEntry failure)voidtestExecutionSkippedByUser()voidtestFailed(org.apache.maven.surefire.report.ReportEntry failure)voidtestSetCompleted(org.apache.maven.surefire.report.TestSetReportEntry result)voidtestSetStarting(org.apache.maven.surefire.report.TestSetReportEntry description)voidtestSkipped(org.apache.maven.surefire.report.ReportEntry description)voidtestStarting(org.apache.maven.surefire.report.ReportEntry description)voidtestSucceeded(org.apache.maven.surefire.report.ReportEntry report)voidwriteTestOutput(byte[] buf, int off, int len, boolean stdout)
-
-
-
Method Detail
-
testSetStarting
public void testSetStarting(org.apache.maven.surefire.report.TestSetReportEntry description)
- Specified by:
testSetStartingin interfaceorg.apache.maven.surefire.report.RunListener
-
testSetCompleted
public void testSetCompleted(org.apache.maven.surefire.report.TestSetReportEntry result)
- Specified by:
testSetCompletedin interfaceorg.apache.maven.surefire.report.RunListener
-
testFailed
public void testFailed(org.apache.maven.surefire.report.ReportEntry failure)
- Specified by:
testFailedin interfaceorg.apache.maven.surefire.report.RunListener
-
testError
public void testError(org.apache.maven.surefire.report.ReportEntry failure)
- Specified by:
testErrorin interfaceorg.apache.maven.surefire.report.RunListener
-
testSkipped
public void testSkipped(org.apache.maven.surefire.report.ReportEntry description)
- Specified by:
testSkippedin interfaceorg.apache.maven.surefire.report.RunListener
-
testExecutionSkippedByUser
public void testExecutionSkippedByUser()
- Specified by:
testExecutionSkippedByUserin interfaceorg.apache.maven.surefire.report.RunListener
-
testAssumptionFailure
public void testAssumptionFailure(org.apache.maven.surefire.report.ReportEntry failure)
- Specified by:
testAssumptionFailurein interfaceorg.apache.maven.surefire.report.RunListener
-
testStarting
public void testStarting(org.apache.maven.surefire.report.ReportEntry description)
- Specified by:
testStartingin interfaceorg.apache.maven.surefire.report.RunListener
-
testSucceeded
public void testSucceeded(org.apache.maven.surefire.report.ReportEntry report)
- Specified by:
testSucceededin interfaceorg.apache.maven.surefire.report.RunListener
-
checkIfTestSetCanBeReported
protected abstract void checkIfTestSetCanBeReported(TestSet testSetForTest)
-
createInstance
public static ConcurrentRunListener createInstance(java.util.Map<java.lang.String,TestSet> classMethodCounts, org.apache.maven.surefire.report.ReporterFactory reporterFactory, boolean parallelClasses, boolean parallelBoth, org.apache.maven.surefire.report.ConsoleStream consoleStream) throws org.apache.maven.surefire.testset.TestSetFailedException
- Throws:
org.apache.maven.surefire.testset.TestSetFailedException
-
writeTestOutput
public void writeTestOutput(byte[] buf, int off, int len, boolean stdout)- Specified by:
writeTestOutputin interfaceorg.apache.maven.surefire.report.ConsoleOutputReceiver
-
-