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 TypeMethodDescriptionvoid
addFirstListener
(org.junit.runner.notification.RunListener listener) void
addListener
(org.junit.runner.notification.RunListener listener) void
fireTestAssumptionFailed
(org.junit.runner.notification.Failure failure) void
fireTestFailure
(org.junit.runner.notification.Failure failure) void
fireTestFinished
(org.junit.runner.Description description) void
fireTestIgnored
(org.junit.runner.Description description) void
fireTestRunFinished
(org.junit.runner.Result result) void
fireTestRunStarted
(org.junit.runner.Description description) void
fireTestStarted
(org.junit.runner.Description description) void
Detach from target notifier.void
removeListener
(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:
addListener
in classorg.junit.runner.notification.RunNotifier
-
addFirstListener
public void addFirstListener(org.junit.runner.notification.RunListener listener) - Overrides:
addFirstListener
in classorg.junit.runner.notification.RunNotifier
-
removeListener
public void removeListener(org.junit.runner.notification.RunListener listener) - Overrides:
removeListener
in classorg.junit.runner.notification.RunNotifier
-
fireTestRunFinished
public void fireTestRunFinished(org.junit.runner.Result result) - Overrides:
fireTestRunFinished
in classorg.junit.runner.notification.RunNotifier
-
fireTestRunStarted
public void fireTestRunStarted(org.junit.runner.Description description) - Overrides:
fireTestRunStarted
in classorg.junit.runner.notification.RunNotifier
-
fireTestStarted
public void fireTestStarted(org.junit.runner.Description description) throws org.junit.runner.notification.StoppedByUserException - Overrides:
fireTestStarted
in classorg.junit.runner.notification.RunNotifier
- Throws:
org.junit.runner.notification.StoppedByUserException
-
fireTestAssumptionFailed
public void fireTestAssumptionFailed(org.junit.runner.notification.Failure failure) - Overrides:
fireTestAssumptionFailed
in classorg.junit.runner.notification.RunNotifier
-
fireTestFailure
public void fireTestFailure(org.junit.runner.notification.Failure failure) - Overrides:
fireTestFailure
in classorg.junit.runner.notification.RunNotifier
-
fireTestIgnored
public void fireTestIgnored(org.junit.runner.Description description) - Overrides:
fireTestIgnored
in classorg.junit.runner.notification.RunNotifier
-
fireTestFinished
public void fireTestFinished(org.junit.runner.Description description) - Overrides:
fireTestFinished
in classorg.junit.runner.notification.RunNotifier
-
pleaseStop
public void pleaseStop()Detach from target notifier.- Overrides:
pleaseStop
in classorg.junit.runner.notification.RunNotifier
-