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 class NonConcurrentRunListener extends JUnit4RunListener
Deprecated.A class to be used when there is no JUnit parallelism (methods or/and class). This allows 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 reuseForks=false and forkCount greater than one.
-
-
Field Summary
Fields Modifier and Type Field Description private org.junit.runner.DescriptioncurrentTestSetDescriptionDeprecated.private org.junit.runner.DescriptionlastFinishedDescriptionDeprecated.-
Fields inherited from class org.apache.maven.surefire.common.junit4.JUnit4RunListener
classMethodIndexer, reporter
-
-
Constructor Summary
Constructors Constructor Description NonConcurrentRunListener(TestReportListener<TestOutputReportEntry> reporter)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private TestSetReportEntrycreateReportEntryForTestSet(org.junit.runner.Description description, java.util.Map<java.lang.String,java.lang.String> systemProps)Deprecated.private TestSetReportEntrycreateTestSetReportEntryFinished(org.junit.runner.Description description)Deprecated.private TestSetReportEntrycreateTestSetReportEntryStarted(org.junit.runner.Description description)Deprecated.private booleandescribesNewTestSet(org.junit.runner.Description description)Deprecated.private voidfinishLastTestSetIfNecessary(org.junit.runner.Description description)Deprecated.voidtestAssumptionFailure(org.junit.runner.notification.Failure failure)Deprecated.voidtestFailure(org.junit.runner.notification.Failure failure)Deprecated.Called when a specific test has failed.voidtestFinished(org.junit.runner.Description description)Deprecated.Called after a specific test has finished.voidtestIgnored(org.junit.runner.Description description)Deprecated.Called when a specific test has been skipped (for whatever reason).voidtestRunFinished(org.junit.runner.Result result)Deprecated.voidtestRunStarted(org.junit.runner.Description description)Deprecated.voidtestStarted(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
-
-
-
-
Constructor Detail
-
NonConcurrentRunListener
NonConcurrentRunListener(TestReportListener<TestOutputReportEntry> reporter)
Deprecated.
-
-
Method Detail
-
createReportEntryForTestSet
private TestSetReportEntry createReportEntryForTestSet(org.junit.runner.Description description, java.util.Map<java.lang.String,java.lang.String> systemProps)
Deprecated.
-
createTestSetReportEntryStarted
private TestSetReportEntry createTestSetReportEntryStarted(org.junit.runner.Description description)
Deprecated.
-
createTestSetReportEntryFinished
private TestSetReportEntry createTestSetReportEntryFinished(org.junit.runner.Description description)
Deprecated.
-
testStarted
public void testStarted(org.junit.runner.Description description) throws java.lang.ExceptionDeprecated.Description copied from class:JUnit4RunListenerCalled when a specific test has started.- Overrides:
testStartedin classJUnit4RunListener- Throws:
java.lang.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
public void testFinished(org.junit.runner.Description description) throws java.lang.ExceptionDeprecated.Description copied from class:JUnit4RunListenerCalled after a specific test has finished.- Overrides:
testFinishedin classJUnit4RunListener- Throws:
java.lang.Exception- See Also:
RunListener.testFinished(org.junit.runner.Description)
-
testIgnored
public void testIgnored(org.junit.runner.Description description) throws java.lang.ExceptionDeprecated.Description copied from class:JUnit4RunListenerCalled when a specific test has been skipped (for whatever reason).- Overrides:
testIgnoredin classJUnit4RunListener- Throws:
java.lang.Exception- See Also:
RunListener.testIgnored(org.junit.runner.Description)
-
testFailure
public void testFailure(org.junit.runner.notification.Failure failure) throws java.lang.ExceptionDeprecated.Description copied from class:JUnit4RunListenerCalled when a specific test has failed.- Overrides:
testFailurein classJUnit4RunListener- Throws:
java.lang.Exception- See Also:
RunListener.testFailure(org.junit.runner.notification.Failure)
-
testAssumptionFailure
public void testAssumptionFailure(org.junit.runner.notification.Failure failure)
Deprecated.- Overrides:
testAssumptionFailurein classJUnit4RunListener
-
testRunStarted
public void testRunStarted(org.junit.runner.Description description) throws java.lang.ExceptionDeprecated.- Overrides:
testRunStartedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testRunFinished
public void testRunFinished(org.junit.runner.Result result) throws java.lang.ExceptionDeprecated.- Overrides:
testRunFinishedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
-