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
See Also:
  • Field Details

  • Constructor Details

    • ConcurrentRunListener

      ConcurrentRunListener(ReporterFactory reporterFactory, boolean reportImmediately, Map<String,TestSet> classMethodCounts)
      Deprecated.
  • Method Details

    • testSetStarting

      public void testSetStarting(TestSetReportEntry description)
      Deprecated.
      Description copied from interface: RunListener
      Indicates the start of a given test-set
      Specified by:
      testSetStarting in interface RunListener
      Parameters:
      description - the report entry describing the testset
    • testSetCompleted

      public void testSetCompleted(TestSetReportEntry result)
      Deprecated.
      Description copied from interface: RunListener
      Indicates end of a given test-set
      Specified by:
      testSetCompleted in interface RunListener
      Parameters:
      result - the report entry describing the testset
    • testFailed

      public void testFailed(ReportEntry failure)
      Deprecated.
      Description copied from interface: RunListener
      Event fired when a test ended with a failure (anticipated problem)
      Specified by:
      testFailed in interface RunListener
      Parameters:
      failure - The report entry to log for
    • testError

      public void testError(ReportEntry failure)
      Deprecated.
      Description copied from interface: RunListener
      Event fired when a test ended with an error (non anticipated problem)
      Specified by:
      testError in interface RunListener
      Parameters:
      failure - The report entry to log for
    • testSkipped

      public void testSkipped(ReportEntry description)
      Deprecated.
      Description copied from interface: RunListener
      Event fired when a test is skipped
      Specified by:
      testSkipped in interface RunListener
      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 by SurefireProvider.

      (The event is fired after the Nth test failed to signal skipping the rest of test-set.)

      Specified by:
      testExecutionSkippedByUser in interface RunListener
    • testAssumptionFailure

      public void testAssumptionFailure(ReportEntry failure)
      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 interface RunListener
      Parameters:
      failure - The report entry to log for
    • testStarting

      public void testStarting(ReportEntry description)
      Deprecated.
      Description copied from interface: RunListener
      Event fired when a test is about to start
      Specified by:
      testStarting in interface RunListener
      Parameters:
      description - The report entry to log for
    • testSucceeded

      public void testSucceeded(ReportEntry report)
      Deprecated.
      Description copied from interface: RunListener
      Event fired when a test ended successfully
      Specified by:
      testSucceeded in interface RunListener
      Parameters:
      report - The report entry to log for
    • getOrCreateThreadAttachedTestMethod

      private TestMethod getOrCreateThreadAttachedTestMethod(ReportEntry description)
      Deprecated.
    • checkIfTestSetCanBeReported

      protected abstract void checkIfTestSetCanBeReported(TestSet testSetForTest)
      Deprecated.
    • getTestSet

      private TestSet getTestSet(ReportEntry description)
      Deprecated.
    • getRunListener

      final TestReportListener<TestOutputReportEntry> getRunListener()
      Deprecated.
    • createInstance

      public static ConcurrentRunListener createInstance(Map<String,TestSet> classMethodCounts, ReporterFactory reporterFactory, boolean parallelClasses, boolean parallelBoth)
      Deprecated.
    • writeTestOutput

      public void writeTestOutput(TestOutputReportEntry reportEntry)
      Deprecated.
      Description copied from interface: TestOutputReceiver
      Forwards process output from the running test-case into the reporting system
      Specified by:
      writeTestOutput in interface TestOutputReceiver<TestOutputReportEntry>
      Parameters:
      reportEntry - wraps test output with descriptive information of the output
    • isDebugEnabled

      public boolean isDebugEnabled()
      Deprecated.
      Specified by:
      isDebugEnabled in interface ConsoleLogger
    • debug

      public void debug(String message)
      Deprecated.
      Specified by:
      debug in interface ConsoleLogger
    • isInfoEnabled

      public boolean isInfoEnabled()
      Deprecated.
      Specified by:
      isInfoEnabled in interface ConsoleLogger
    • info

      public void info(String message)
      Deprecated.
      Specified by:
      info in interface ConsoleLogger
    • isWarnEnabled

      public boolean isWarnEnabled()
      Deprecated.
      Specified by:
      isWarnEnabled in interface ConsoleLogger
    • warning

      public void warning(String message)
      Deprecated.
      Specified by:
      warning in interface ConsoleLogger
    • isErrorEnabled

      public boolean isErrorEnabled()
      Deprecated.
      Specified by:
      isErrorEnabled in interface ConsoleLogger
    • error

      public void error(String message)
      Deprecated.
      Specified by:
      error in interface ConsoleLogger
      Parameters:
      message - message to log
    • error

      public void error(String message, Throwable t)
      Deprecated.
      Description copied from interface: ConsoleLogger
      Simply delegates to error( toString( t, message ) ).
      Specified by:
      error in interface ConsoleLogger
      Parameters:
      message - message to log
      t - exception, message and trace to log
    • error

      public void error(Throwable t)
      Deprecated.
      Description copied from interface: ConsoleLogger
      Simply delegates to method error(null, Throwable).
      Specified by:
      error in interface ConsoleLogger
      Parameters:
      t - exception, message and trace to log