public class OrderedRunNotifier
extends org.junit.runner.notification.RunNotifier
Constructor and Description |
---|
OrderedRunNotifier() |
Modifier and Type | Method and Description |
---|---|
void |
addFirstListener(org.junit.runner.notification.RunListener listener)
Adds a listener at the head of the listener list.
|
void |
addListener(org.junit.runner.notification.RunListener listener)
Add a listener at the end of the listener list.
|
void |
fireTestAssumptionFailed(org.junit.runner.notification.Failure failure)
Invoke to tell listeners that an atomic test flagged that it assumed
something false.
|
void |
fireTestFailure(org.junit.runner.notification.Failure failure)
Invoke to tell listeners that an atomic test failed.
|
void |
fireTestFinished(org.junit.runner.Description description)
Invoke to tell listeners that an atomic test finished.
|
void |
fireTestIgnored(org.junit.runner.Description description)
Invoke to tell listeners that an atomic test was ignored.
|
void |
fireTestRunFinished(org.junit.runner.Result result)
Do not invoke.
|
void |
fireTestRunStarted(org.junit.runner.Description description)
Do not invoke.
|
void |
fireTestStarted(org.junit.runner.Description description)
Invoke to tell listeners that an atomic test is about to start.
|
void |
pleaseStop()
Ask that the tests run stop before starting the next test.
|
void |
removeListener(org.junit.runner.notification.RunListener listener)
Remove a listener from the listener list.
|
public void addListener(org.junit.runner.notification.RunListener listener)
addListener
in class org.junit.runner.notification.RunNotifier
public void addFirstListener(org.junit.runner.notification.RunListener listener)
addFirstListener
in class org.junit.runner.notification.RunNotifier
public void removeListener(org.junit.runner.notification.RunListener listener)
removeListener
in class org.junit.runner.notification.RunNotifier
public void fireTestRunStarted(org.junit.runner.Description description)
fireTestRunStarted
in class org.junit.runner.notification.RunNotifier
public void fireTestRunFinished(org.junit.runner.Result result)
fireTestRunFinished
in class org.junit.runner.notification.RunNotifier
public void fireTestStarted(org.junit.runner.Description description) throws org.junit.runner.notification.StoppedByUserException
fireTestStarted
in class org.junit.runner.notification.RunNotifier
description
- the description of the atomic test (generally a class and method
name)org.junit.runner.notification.StoppedByUserException
- thrown if a user has requested that the test run stoppublic void fireTestFailure(org.junit.runner.notification.Failure failure)
fireTestFailure
in class org.junit.runner.notification.RunNotifier
failure
- the description of the test that failed and the exception thrownpublic void fireTestAssumptionFailed(org.junit.runner.notification.Failure failure)
fireTestAssumptionFailed
in class org.junit.runner.notification.RunNotifier
failure
- the description of the test that failed and the
AssumptionViolatedException
thrownpublic void fireTestIgnored(org.junit.runner.Description description)
fireTestIgnored
in class org.junit.runner.notification.RunNotifier
description
- the description of the ignored testpublic void fireTestFinished(org.junit.runner.Description description)
fireTestFinished(Description)
if you invoke
fireTestStarted(Description)
as listeners are likely to expect
them to come in pairs.fireTestFinished
in class org.junit.runner.notification.RunNotifier
description
- the description of the test that finishedpublic void pleaseStop()
RunNotifier
is the only object guaranteed to be shared amongst the many runners
involved.pleaseStop
in class org.junit.runner.notification.RunNotifier
Copyright © 2011–2015 Carrot Search s.c.. All rights reserved.