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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<org.junit.runner.notification.Failure>
allFailures
-
Constructor Summary
Constructors Constructor Description JUnitTestFailureListener()
-
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)
-
-
-
Method Detail
-
testFailure
public void testFailure(org.junit.runner.notification.Failure failure) throws java.lang.Exception
- Overrides:
testFailure
in classorg.junit.runner.notification.RunListener
- Throws:
java.lang.Exception
-
getAllFailures
public java.util.List<org.junit.runner.notification.Failure> getAllFailures()
-
reset
public void reset()
-
-