Class 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 failed  
    • Constructor Summary

      Constructors 
      Constructor Description
      FailureDetector()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isSuccessful()  
      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 Detail

      • failed

        private boolean failed
    • Constructor Detail

      • FailureDetector

        public FailureDetector()
    • Method Detail

      • testFailure

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

        public boolean isSuccessful()