Class JUnitTestFailureListener


  • public class JUnitTestFailureListener
    extends org.junit.runner.notification.RunListener
    Test listener to record all the failures during one run
    • 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 java.util.List<org.junit.runner.notification.Failure> allFailures  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.junit.runner.notification.Failure> getAllFailures()  
      void reset()  
      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

      • allFailures

        private final java.util.List<org.junit.runner.notification.Failure> allFailures
    • Constructor Detail

      • JUnitTestFailureListener

        public JUnitTestFailureListener()
    • 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
      • getAllFailures

        public java.util.List<org.junit.runner.notification.Failure> getAllFailures()
      • reset

        public void reset()