Class NonConcurrentRunListener
java.lang.Object
org.junit.runner.notification.RunListener
org.apache.maven.surefire.common.junit4.JUnit4RunListener
org.apache.maven.surefire.junitcore.NonConcurrentRunListener
- All Implemented Interfaces:
TestOutputReceiver<OutputReportEntry>
,RunModeSetter
Deprecated.
A class to be used when there is no JUnit parallelism (methods or/and class). This allow to workaround JUnit
limitation a la Junit4 provider. Specifically, we can redirect properly the output even if we don't have class
demarcation in JUnit. It works when if there is a JVM instance per test run, i.e. with forkMode=always or perthread.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener
org.junit.runner.notification.RunListener.ThreadSafe
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.junit.runner.Description
Deprecated.private org.junit.runner.Description
Deprecated.Fields inherited from class org.apache.maven.surefire.common.junit4.JUnit4RunListener
classMethodIndexer, reporter
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionprivate TestSetReportEntry
createReportEntryForTestSet
(org.junit.runner.Description description, Map<String, String> systemProps) Deprecated.private TestSetReportEntry
createTestSetReportEntryFinished
(org.junit.runner.Description description) Deprecated.private TestSetReportEntry
createTestSetReportEntryStarted
(org.junit.runner.Description description) Deprecated.private boolean
describesNewTestSet
(org.junit.runner.Description description) Deprecated.private void
finishLastTestSetIfNecessary
(org.junit.runner.Description description) Deprecated.void
testAssumptionFailure
(org.junit.runner.notification.Failure failure) Deprecated.void
testFailure
(org.junit.runner.notification.Failure failure) Deprecated.Called when a specific test has failed.void
testFinished
(org.junit.runner.Description description) Deprecated.Called after a specific test has finished.void
testIgnored
(org.junit.runner.Description description) Deprecated.Called when a specific test has been skipped (for whatever reason).void
testRunFinished
(org.junit.runner.Result result) Deprecated.void
testRunStarted
(org.junit.runner.Description description) Deprecated.void
testStarted
(org.junit.runner.Description description) Deprecated.Called when a specific test has started.Methods inherited from class org.apache.maven.surefire.common.junit4.JUnit4RunListener
createReportEntry, createStackTraceWriter, getConsoleLogger, getRunMode, rethrowAnyTestMechanismFailures, setRunMode, testExecutionSkippedByUser, writeTestOutput
Methods inherited from class org.junit.runner.notification.RunListener
testSuiteFinished, testSuiteStarted
-
Field Details
-
currentTestSetDescription
private org.junit.runner.Description currentTestSetDescriptionDeprecated. -
lastFinishedDescription
private org.junit.runner.Description lastFinishedDescriptionDeprecated.
-
-
Constructor Details
-
NonConcurrentRunListener
NonConcurrentRunListener(TestReportListener<TestOutputReportEntry> reporter) Deprecated.
-
-
Method Details
-
createReportEntryForTestSet
private TestSetReportEntry createReportEntryForTestSet(org.junit.runner.Description description, Map<String, String> systemProps) Deprecated. -
createTestSetReportEntryStarted
private TestSetReportEntry createTestSetReportEntryStarted(org.junit.runner.Description description) Deprecated. -
createTestSetReportEntryFinished
private TestSetReportEntry createTestSetReportEntryFinished(org.junit.runner.Description description) Deprecated. -
testStarted
Deprecated.Description copied from class:JUnit4RunListener
Called when a specific test has started.- Overrides:
testStarted
in classJUnit4RunListener
- Throws:
Exception
- See Also:
-
RunListener.testStarted(org.junit.runner.Description)
-
finishLastTestSetIfNecessary
private void finishLastTestSetIfNecessary(org.junit.runner.Description description) Deprecated. -
describesNewTestSet
private boolean describesNewTestSet(org.junit.runner.Description description) Deprecated. -
testFinished
Deprecated.Description copied from class:JUnit4RunListener
Called after a specific test has finished.- Overrides:
testFinished
in classJUnit4RunListener
- Throws:
Exception
- See Also:
-
RunListener.testFinished(org.junit.runner.Description)
-
testIgnored
Deprecated.Description copied from class:JUnit4RunListener
Called when a specific test has been skipped (for whatever reason).- Overrides:
testIgnored
in classJUnit4RunListener
- Throws:
Exception
- See Also:
-
RunListener.testIgnored(org.junit.runner.Description)
-
testFailure
Deprecated.Description copied from class:JUnit4RunListener
Called when a specific test has failed.- Overrides:
testFailure
in classJUnit4RunListener
- Throws:
Exception
- See Also:
-
RunListener.testFailure(org.junit.runner.notification.Failure)
-
testAssumptionFailure
public void testAssumptionFailure(org.junit.runner.notification.Failure failure) Deprecated.- Overrides:
testAssumptionFailure
in classJUnit4RunListener
-
testRunStarted
Deprecated.- Overrides:
testRunStarted
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-
testRunFinished
Deprecated.- Overrides:
testRunFinished
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-