Class ThreadLeakControl.SubNotifier
java.lang.Object
org.junit.runner.notification.RunNotifier
com.carrotsearch.randomizedtesting.ThreadLeakControl.SubNotifier
- Enclosing class:
ThreadLeakControl
private class ThreadLeakControl.SubNotifier
extends org.junit.runner.notification.RunNotifier
Sub-notifier that controls passing events back in case of timeouts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean(package private) org.junit.runner.Description -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFirstListener(org.junit.runner.notification.RunListener listener) voidaddListener(org.junit.runner.notification.RunListener listener) voidfireTestAssumptionFailed(org.junit.runner.notification.Failure failure) voidfireTestFailure(org.junit.runner.notification.Failure failure) voidfireTestFinished(org.junit.runner.Description description) voidfireTestIgnored(org.junit.runner.Description description) voidfireTestRunFinished(org.junit.runner.Result result) voidfireTestRunStarted(org.junit.runner.Description description) voidfireTestStarted(org.junit.runner.Description description) voidDetach from target notifier.voidremoveListener(org.junit.runner.notification.RunListener listener) Methods inherited from class org.junit.runner.notification.RunNotifier
fireTestSuiteFinished, fireTestSuiteStarted
-
Field Details
-
stopRequested
private boolean stopRequested -
testInProgress
org.junit.runner.Description testInProgress
-
-
Constructor Details
-
SubNotifier
private SubNotifier()
-
-
Method Details
-
addListener
public void addListener(org.junit.runner.notification.RunListener listener) - Overrides:
addListenerin classorg.junit.runner.notification.RunNotifier
-
addFirstListener
public void addFirstListener(org.junit.runner.notification.RunListener listener) - Overrides:
addFirstListenerin classorg.junit.runner.notification.RunNotifier
-
removeListener
public void removeListener(org.junit.runner.notification.RunListener listener) - Overrides:
removeListenerin classorg.junit.runner.notification.RunNotifier
-
fireTestRunFinished
public void fireTestRunFinished(org.junit.runner.Result result) - Overrides:
fireTestRunFinishedin classorg.junit.runner.notification.RunNotifier
-
fireTestRunStarted
public void fireTestRunStarted(org.junit.runner.Description description) - Overrides:
fireTestRunStartedin classorg.junit.runner.notification.RunNotifier
-
fireTestStarted
public void fireTestStarted(org.junit.runner.Description description) throws org.junit.runner.notification.StoppedByUserException - Overrides:
fireTestStartedin classorg.junit.runner.notification.RunNotifier- Throws:
org.junit.runner.notification.StoppedByUserException
-
fireTestAssumptionFailed
public void fireTestAssumptionFailed(org.junit.runner.notification.Failure failure) - Overrides:
fireTestAssumptionFailedin classorg.junit.runner.notification.RunNotifier
-
fireTestFailure
public void fireTestFailure(org.junit.runner.notification.Failure failure) - Overrides:
fireTestFailurein classorg.junit.runner.notification.RunNotifier
-
fireTestIgnored
public void fireTestIgnored(org.junit.runner.Description description) - Overrides:
fireTestIgnoredin classorg.junit.runner.notification.RunNotifier
-
fireTestFinished
public void fireTestFinished(org.junit.runner.Description description) - Overrides:
fireTestFinishedin classorg.junit.runner.notification.RunNotifier
-
pleaseStop
public void pleaseStop()Detach from target notifier.- Overrides:
pleaseStopin classorg.junit.runner.notification.RunNotifier
-