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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Field Details
-
failed
private boolean failed
-
-
Constructor Details
-
FailureDetector
public FailureDetector()
-
-
Method Details
-
testFailure
- Overrides:
testFailure
in classorg.junit.runner.notification.RunListener
- Throws:
Exception
-
isSuccessful
public boolean isSuccessful()
-