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 ConsoleLogger
Deprecated.private final ThreadLocal<TestReportListener<TestOutputReportEntry>>
Deprecated.private final boolean
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionConcurrentRunListener
(ReporterFactory reporterFactory, boolean reportImmediately, Map<String, TestSet> classMethodCounts) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
checkIfTestSetCanBeReported
(TestSet testSetForTest) Deprecated.static ConcurrentRunListener
createInstance
(Map<String, TestSet> classMethodCounts, ReporterFactory reporterFactory, boolean parallelClasses, boolean parallelBoth) Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.Simply delegates toerror( toString( t, message ) )
.void
Deprecated.Simply delegates to methoderror(null, Throwable)
.private TestMethod
getOrCreateThreadAttachedTestMethod
(ReportEntry description) Deprecated.(package private) final TestReportListener<TestOutputReportEntry>
Deprecated.private TestSet
getTestSet
(ReportEntry description) Deprecated.void
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.void
testAssumptionFailure
(ReportEntry failure) Deprecated.Event fired when a test assumption failure was encountered.void
testError
(ReportEntry failure) Deprecated.Event fired when a test ended with an error (non anticipated problem)void
Deprecated.Event fired skipping an execution of remaining test-set in other fork(s); or does nothing if no forks.void
testFailed
(ReportEntry failure) Deprecated.Event fired when a test ended with a failure (anticipated problem)void
testSetCompleted
(TestSetReportEntry result) Deprecated.Indicates end of a given test-setvoid
testSetStarting
(TestSetReportEntry description) Deprecated.Indicates the start of a given test-setvoid
testSkipped
(ReportEntry description) Deprecated.Event fired when a test is skippedvoid
testStarting
(ReportEntry description) Deprecated.Event fired when a test is about to startvoid
testSucceeded
(ReportEntry report) Deprecated.Event fired when a test ended successfullyvoid
Deprecated.void
writeTestOutput
(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:RunListener
Indicates the start of a given test-set- Specified by:
testSetStarting
in interfaceRunListener
- Parameters:
description
- the report entry describing the testset
-
testSetCompleted
Deprecated.Description copied from interface:RunListener
Indicates end of a given test-set- Specified by:
testSetCompleted
in interfaceRunListener
- Parameters:
result
- the report entry describing the testset
-
testFailed
Deprecated.Description copied from interface:RunListener
Event fired when a test ended with a failure (anticipated problem)- Specified by:
testFailed
in interfaceRunListener
- Parameters:
failure
- The report entry to log for
-
testError
Deprecated.Description copied from interface:RunListener
Event fired when a test ended with an error (non anticipated problem)- Specified by:
testError
in interfaceRunListener
- Parameters:
failure
- The report entry to log for
-
testSkipped
Deprecated.Description copied from interface:RunListener
Event fired when a test is skipped- Specified by:
testSkipped
in interfaceRunListener
- Parameters:
description
- The report entry to log for
-
testExecutionSkippedByUser
public void testExecutionSkippedByUser()Deprecated.Description copied from interface:RunListener
Event 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:
testExecutionSkippedByUser
in interfaceRunListener
-
testAssumptionFailure
Deprecated.Description copied from interface:RunListener
Event fired when a test assumption failure was encountered. An assumption failure indicates that the test is not relevant- Specified by:
testAssumptionFailure
in interfaceRunListener
- Parameters:
failure
- The report entry to log for
-
testStarting
Deprecated.Description copied from interface:RunListener
Event fired when a test is about to start- Specified by:
testStarting
in interfaceRunListener
- Parameters:
description
- The report entry to log for
-
testSucceeded
Deprecated.Description copied from interface:RunListener
Event fired when a test ended successfully- Specified by:
testSucceeded
in 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:TestOutputReceiver
Forwards process output from the running test-case into the reporting system- Specified by:
writeTestOutput
in interfaceTestOutputReceiver<TestOutputReportEntry>
- Parameters:
reportEntry
- wraps test output with descriptive information of the output
-
isDebugEnabled
public boolean isDebugEnabled()Deprecated.- Specified by:
isDebugEnabled
in interfaceConsoleLogger
-
debug
Deprecated.- Specified by:
debug
in interfaceConsoleLogger
-
isInfoEnabled
public boolean isInfoEnabled()Deprecated.- Specified by:
isInfoEnabled
in interfaceConsoleLogger
-
info
Deprecated.- Specified by:
info
in interfaceConsoleLogger
-
isWarnEnabled
public boolean isWarnEnabled()Deprecated.- Specified by:
isWarnEnabled
in interfaceConsoleLogger
-
warning
Deprecated.- Specified by:
warning
in interfaceConsoleLogger
-
isErrorEnabled
public boolean isErrorEnabled()Deprecated.- Specified by:
isErrorEnabled
in interfaceConsoleLogger
-
error
Deprecated.- Specified by:
error
in interfaceConsoleLogger
- Parameters:
message
- message to log
-
error
Deprecated.Description copied from interface:ConsoleLogger
Simply delegates toerror( toString( t, message ) )
.- Specified by:
error
in interfaceConsoleLogger
- Parameters:
message
- message to logt
- exception, message and trace to log
-
error
Deprecated.Description copied from interface:ConsoleLogger
Simply delegates to methoderror(null, Throwable)
.- Specified by:
error
in interfaceConsoleLogger
- Parameters:
t
- exception, message and trace to log
-