Class ThreadLeakControl.SubNotifier

java.lang.Object
org.junit.runner.notification.RunNotifier
com.carrotsearch.randomizedtesting.ThreadLeakControl.SubNotifier
Enclosing class:
ThreadLeakControl

private class ThreadLeakControl.SubNotifier extends org.junit.runner.notification.RunNotifier
Sub-notifier that controls passing events back in case of timeouts.
  • Field Details

    • stopRequested

      private boolean stopRequested
    • testInProgress

      org.junit.runner.Description testInProgress
  • Constructor Details

    • SubNotifier

      private SubNotifier()
  • Method Details

    • addListener

      public void addListener(org.junit.runner.notification.RunListener listener)
      Overrides:
      addListener in class org.junit.runner.notification.RunNotifier
    • addFirstListener

      public void addFirstListener(org.junit.runner.notification.RunListener listener)
      Overrides:
      addFirstListener in class org.junit.runner.notification.RunNotifier
    • removeListener

      public void removeListener(org.junit.runner.notification.RunListener listener)
      Overrides:
      removeListener in class org.junit.runner.notification.RunNotifier
    • fireTestRunFinished

      public void fireTestRunFinished(org.junit.runner.Result result)
      Overrides:
      fireTestRunFinished in class org.junit.runner.notification.RunNotifier
    • fireTestRunStarted

      public void fireTestRunStarted(org.junit.runner.Description description)
      Overrides:
      fireTestRunStarted in class org.junit.runner.notification.RunNotifier
    • fireTestStarted

      public void fireTestStarted(org.junit.runner.Description description) throws org.junit.runner.notification.StoppedByUserException
      Overrides:
      fireTestStarted in class org.junit.runner.notification.RunNotifier
      Throws:
      org.junit.runner.notification.StoppedByUserException
    • fireTestAssumptionFailed

      public void fireTestAssumptionFailed(org.junit.runner.notification.Failure failure)
      Overrides:
      fireTestAssumptionFailed in class org.junit.runner.notification.RunNotifier
    • fireTestFailure

      public void fireTestFailure(org.junit.runner.notification.Failure failure)
      Overrides:
      fireTestFailure in class org.junit.runner.notification.RunNotifier
    • fireTestIgnored

      public void fireTestIgnored(org.junit.runner.Description description)
      Overrides:
      fireTestIgnored in class org.junit.runner.notification.RunNotifier
    • fireTestFinished

      public void fireTestFinished(org.junit.runner.Description description)
      Overrides:
      fireTestFinished in class org.junit.runner.notification.RunNotifier
    • pleaseStop

      public void pleaseStop()
      Detach from target notifier.
      Overrides:
      pleaseStop in class org.junit.runner.notification.RunNotifier