Class RunListenerAdapter

java.lang.Object
org.junit.runner.notification.RunListener
org.junit.vintage.engine.execution.RunListenerAdapter

class RunListenerAdapter extends org.junit.runner.notification.RunListener
Since:
4.12
  • Field Details

  • Constructor Details

  • Method Details

    • testRunStarted

      public void testRunStarted(org.junit.runner.Description description)
      Overrides:
      testRunStarted in class org.junit.runner.notification.RunListener
    • testSuiteStarted

      public void testSuiteStarted(org.junit.runner.Description description)
      Overrides:
      testSuiteStarted in class org.junit.runner.notification.RunListener
    • testIgnored

      public void testIgnored(org.junit.runner.Description description)
      Overrides:
      testIgnored in class org.junit.runner.notification.RunListener
    • testStarted

      public void testStarted(org.junit.runner.Description description)
      Overrides:
      testStarted in class org.junit.runner.notification.RunListener
    • testAssumptionFailure

      public void testAssumptionFailure(org.junit.runner.notification.Failure failure)
      Overrides:
      testAssumptionFailure in class org.junit.runner.notification.RunListener
    • testFailure

      public void testFailure(org.junit.runner.notification.Failure failure)
      Overrides:
      testFailure in class org.junit.runner.notification.RunListener
    • testFinished

      public void testFinished(org.junit.runner.Description description)
      Overrides:
      testFinished in class org.junit.runner.notification.RunListener
    • testSuiteFinished

      public void testSuiteFinished(org.junit.runner.Description description)
      Overrides:
      testSuiteFinished in class org.junit.runner.notification.RunListener
    • testRunFinished

      public void testRunFinished(org.junit.runner.Result result)
      Overrides:
      testRunFinished in class org.junit.runner.notification.RunListener
    • reportContainerFinished

      private void reportContainerFinished(TestDescriptor containerTestDescriptor)
    • lookupOrRegisterNextTestDescriptor

      private TestDescriptor lookupOrRegisterNextTestDescriptor(org.junit.runner.Description description)
    • lookupOrRegisterCurrentTestDescriptor

      private TestDescriptor lookupOrRegisterCurrentTestDescriptor(org.junit.runner.Description description)
    • lookupOrRegisterTestDescriptor

      private TestDescriptor lookupOrRegisterTestDescriptor(org.junit.runner.Description description, Function<org.junit.runner.Description,Optional<VintageTestDescriptor>> lookup)
    • registerDynamicTestDescriptor

      private VintageTestDescriptor registerDynamicTestDescriptor(org.junit.runner.Description description, Function<org.junit.runner.Description,Optional<VintageTestDescriptor>> lookup)
    • findParent

      private TestDescriptor findParent(org.junit.runner.Description description, Function<org.junit.runner.Description,Optional<VintageTestDescriptor>> lookup)
    • handleFailure

      private void handleFailure(org.junit.runner.notification.Failure failure, Function<Throwable,TestExecutionResult> resultCreator)
    • handleFailure

      private void handleFailure(org.junit.runner.notification.Failure failure, Function<Throwable,TestExecutionResult> resultCreator, TestDescriptor testDescriptor)
    • testIgnored

      private void testIgnored(TestDescriptor testDescriptor, String reason)
    • determineReasonForIgnoredTest

      private Optional<String> determineReasonForIgnoredTest(TestDescriptor testDescriptor, org.junit.runner.Description description)
    • getReason

      private static Optional<String> getReason(org.junit.Ignore annotation)
    • dynamicTestRegistered

      private void dynamicTestRegistered(TestDescriptor testDescriptor)
    • testStarted

      private void testStarted(TestDescriptor testDescriptor, EventType eventType)
    • fireExecutionFinishedForInProgressNonAncestorTestDescriptorsWithSyntheticStartEvents

      private void fireExecutionFinishedForInProgressNonAncestorTestDescriptorsWithSyntheticStartEvents(TestDescriptor testDescriptor)
    • isAncestor

      private boolean isAncestor(TestDescriptor candidate, TestDescriptor testDescriptor)
    • testFinished

      private void testFinished(TestDescriptor descriptor)
    • fireExecutionStartedIncludingUnstartedAncestors

      private void fireExecutionStartedIncludingUnstartedAncestors(Optional<TestDescriptor> parent)
    • canStart

      private boolean canStart(TestDescriptor testDescriptor)
    • canFinish

      private boolean canFinish(TestDescriptor testDescriptor)
    • fireExecutionSkipped

      private void fireExecutionSkipped(TestDescriptor testDescriptor, String reason)
    • fireExecutionStarted

      private void fireExecutionStarted(TestDescriptor testDescriptor, EventType eventType)
    • fireExecutionFinished

      private void fireExecutionFinished(TestDescriptor testDescriptor)