Class JUnitTestFailureListener

java.lang.Object
org.junit.runner.notification.RunListener
org.apache.maven.surefire.common.junit4.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 final List<org.junit.runner.notification.Failure>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.junit.runner.notification.Failure>
     
    void
     
    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

    • allFailures

      private final List<org.junit.runner.notification.Failure> allFailures
  • Constructor Details

    • JUnitTestFailureListener

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

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

      public void reset()