Class ConcurrentRunListener
java.lang.Object
org.apache.maven.surefire.junitcore.ConcurrentRunListener
- All Implemented Interfaces:
ConsoleLogger,RunListener,TestOutputReceiver<TestOutputReportEntry>,TestReportListener<TestOutputReportEntry>
- Direct Known Subclasses:
ClassesParallelRunListener,MethodsParallelRunListener
@Deprecated
abstract class ConcurrentRunListener
extends Object
implements TestReportListener<TestOutputReportEntry>
Deprecated.
Handles 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
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.private final ConsoleLoggerDeprecated.private final ThreadLocal<TestReportListener<TestOutputReportEntry>>Deprecated.private final booleanDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionConcurrentRunListener(ReporterFactory reporterFactory, boolean reportImmediately, Map<String, TestSet> classMethodCounts) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcheckIfTestSetCanBeReported(TestSet testSetForTest) Deprecated.static ConcurrentRunListenercreateInstance(Map<String, TestSet> classMethodCounts, ReporterFactory reporterFactory, boolean parallelClasses, boolean parallelBoth) Deprecated.voidDeprecated.voidDeprecated.voidDeprecated.Simply delegates toerror( toString( t, message ) ).voidDeprecated.Simply delegates to methoderror(null, Throwable).private TestMethodgetOrCreateThreadAttachedTestMethod(ReportEntry description) Deprecated.(package private) final TestReportListener<TestOutputReportEntry>Deprecated.private TestSetgetTestSet(ReportEntry description) Deprecated.voidDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.voidtestAssumptionFailure(ReportEntry failure) Deprecated.Event fired when a test assumption failure was encountered.voidtestError(ReportEntry failure) Deprecated.Event fired when a test ended with an error (non anticipated problem)voidDeprecated.Event fired skipping an execution of remaining test-set in other fork(s); or does nothing if no forks.voidtestFailed(ReportEntry failure) Deprecated.Event fired when a test ended with a failure (anticipated problem)voidtestSetCompleted(TestSetReportEntry result) Deprecated.Indicates end of a given test-setvoidtestSetStarting(TestSetReportEntry description) Deprecated.Indicates the start of a given test-setvoidtestSkipped(ReportEntry description) Deprecated.Event fired when a test is skippedvoidtestStarting(ReportEntry description) Deprecated.Event fired when a test is about to startvoidtestSucceeded(ReportEntry report) Deprecated.Event fired when a test ended successfullyvoidDeprecated.voidwriteTestOutput(TestOutputReportEntry reportEntry) Deprecated.Forwards process output from the running test-case into the reporting system
-
Field Details
-
classMethodCounts
Deprecated. -
reporterManagerThreadLocal
Deprecated. -
reportImmediately
private final boolean reportImmediatelyDeprecated. -
logger
Deprecated.
-
-
Constructor Details
-
ConcurrentRunListener
ConcurrentRunListener(ReporterFactory reporterFactory, boolean reportImmediately, Map<String, TestSet> classMethodCounts) Deprecated.
-
-
Method Details
-
testSetStarting
Deprecated.Description copied from interface:RunListenerIndicates the start of a given test-set- Specified by:
testSetStartingin interfaceRunListener- Parameters:
description- the report entry describing the testset
-
testSetCompleted
Deprecated.Description copied from interface:RunListenerIndicates end of a given test-set- Specified by:
testSetCompletedin interfaceRunListener- Parameters:
result- the report entry describing the testset
-
testFailed
Deprecated.Description copied from interface:RunListenerEvent fired when a test ended with a failure (anticipated problem)- Specified by:
testFailedin interfaceRunListener- Parameters:
failure- The report entry to log for
-
testError
Deprecated.Description copied from interface:RunListenerEvent fired when a test ended with an error (non anticipated problem)- Specified by:
testErrorin interfaceRunListener- Parameters:
failure- The report entry to log for
-
testSkipped
Deprecated.Description copied from interface:RunListenerEvent fired when a test is skipped- Specified by:
testSkippedin interfaceRunListener- Parameters:
description- The report entry to log for
-
testExecutionSkippedByUser
public void testExecutionSkippedByUser()Deprecated.Description copied from interface:RunListenerEvent fired skipping an execution of remaining test-set in other fork(s); or does nothing if no forks. The method is called bySurefireProvider.(The event is fired after the Nth test failed to signal skipping the rest of test-set.)
- Specified by:
testExecutionSkippedByUserin interfaceRunListener
-
testAssumptionFailure
Deprecated.Description copied from interface:RunListenerEvent fired when a test assumption failure was encountered. An assumption failure indicates that the test is not relevant- Specified by:
testAssumptionFailurein interfaceRunListener- Parameters:
failure- The report entry to log for
-
testStarting
Deprecated.Description copied from interface:RunListenerEvent fired when a test is about to start- Specified by:
testStartingin interfaceRunListener- Parameters:
description- The report entry to log for
-
testSucceeded
Deprecated.Description copied from interface:RunListenerEvent fired when a test ended successfully- Specified by:
testSucceededin interfaceRunListener- Parameters:
report- The report entry to log for
-
getOrCreateThreadAttachedTestMethod
Deprecated. -
checkIfTestSetCanBeReported
Deprecated. -
getTestSet
Deprecated. -
getRunListener
Deprecated. -
createInstance
public static ConcurrentRunListener createInstance(Map<String, TestSet> classMethodCounts, ReporterFactory reporterFactory, boolean parallelClasses, boolean parallelBoth) Deprecated. -
writeTestOutput
Deprecated.Description copied from interface:TestOutputReceiverForwards process output from the running test-case into the reporting system- Specified by:
writeTestOutputin interfaceTestOutputReceiver<TestOutputReportEntry>- Parameters:
reportEntry- wraps test output with descriptive information of the output
-
isDebugEnabled
public boolean isDebugEnabled()Deprecated.- Specified by:
isDebugEnabledin interfaceConsoleLogger
-
debug
Deprecated.- Specified by:
debugin interfaceConsoleLogger
-
isInfoEnabled
public boolean isInfoEnabled()Deprecated.- Specified by:
isInfoEnabledin interfaceConsoleLogger
-
info
Deprecated.- Specified by:
infoin interfaceConsoleLogger
-
isWarnEnabled
public boolean isWarnEnabled()Deprecated.- Specified by:
isWarnEnabledin interfaceConsoleLogger
-
warning
Deprecated.- Specified by:
warningin interfaceConsoleLogger
-
isErrorEnabled
public boolean isErrorEnabled()Deprecated.- Specified by:
isErrorEnabledin interfaceConsoleLogger
-
error
Deprecated.- Specified by:
errorin interfaceConsoleLogger- Parameters:
message- message to log
-
error
Deprecated.Description copied from interface:ConsoleLoggerSimply delegates toerror( toString( t, message ) ).- Specified by:
errorin interfaceConsoleLogger- Parameters:
message- message to logt- exception, message and trace to log
-
error
Deprecated.Description copied from interface:ConsoleLoggerSimply delegates to methoderror(null, Throwable).- Specified by:
errorin interfaceConsoleLogger- Parameters:
t- exception, message and trace to log
-