Class FailureDetector

java.lang.Object
org.junit.runner.notification.RunListener
org.mockito.internal.runners.util.FailureDetector

public class FailureDetector extends org.junit.runner.notification.RunListener
Implementation of JUnit run listener that knows when any of the tests failed
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener

    org.junit.runner.notification.RunListener.ThreadSafe
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    testFailure(org.junit.runner.notification.Failure failure)
     

    Methods inherited from class org.junit.runner.notification.RunListener

    testAssumptionFailure, testFinished, testIgnored, testRunFinished, testRunStarted, testStarted, testSuiteFinished, testSuiteStarted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • failed

      private boolean failed
  • Constructor Details

    • FailureDetector

      public FailureDetector()
  • Method Details

    • testFailure

      public void testFailure(org.junit.runner.notification.Failure failure) throws Exception
      Overrides:
      testFailure in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • isSuccessful

      public boolean isSuccessful()