Class JUnit3Reporter

java.lang.Object
org.apache.maven.surefire.junit.JUnit3Reporter
All Implemented Interfaces:
RunListener, TestOutputReceiver<OutputReportEntry>, RunModeSetter

final class JUnit3Reporter extends Object implements RunListener, TestOutputReceiver<OutputReportEntry>, RunModeSetter
This implementation of RunListener handles OutputReportEntry in the output receiver, downcasting to TestOutputReportEntry, and delegates the report entry to the TestReportListener. This object necessarily requires setting the RunMode in order to behave properly.
  • Field Details

  • Constructor Details

  • Method Details

    • getClassMethodIndexer

      ClassMethodIndexer getClassMethodIndexer()
    • setRunMode

      public void setRunMode(RunMode runMode)
      Specified by:
      setRunMode in interface RunModeSetter
    • testSetStarting

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

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

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

      public void testSucceeded(ReportEntry report)
      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
    • testAssumptionFailure

      public void testAssumptionFailure(ReportEntry report)
      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:
      report - The report entry to log for
    • testError

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

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

      public void testSkipped(ReportEntry report)
      Description copied from interface: RunListener
      Event fired when a test is skipped
      Specified by:
      testSkipped in interface RunListener
      Parameters:
      report - The report entry to log for
    • testExecutionSkippedByUser

      public void testExecutionSkippedByUser()
      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
    • writeTestOutput

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