public class Notifier extends RunNotifier
JUnit notifier
,
encapsulates several different types of JUnit listeners
, and
fires events to listeners.Constructor and Description |
---|
Notifier(JUnit4RunListener reporter,
int skipAfterFailureCount) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(RunListener listener) |
Notifier |
addListeners(Collection<RunListener> given) |
Notifier |
addListeners(RunListener... given) |
Notifier |
asFailFast(boolean failFast) |
void |
copyListenersTo(Notifier copyTo) |
void |
fireTestFailure(Failure failure) |
void |
fireTestStarted(Description description) |
Queue<String> |
getRemainingTestClasses() |
boolean |
isFailFast() |
static Notifier |
pureNotifier() |
void |
removeListener(RunListener listener) |
void |
removeListeners() |
fireTestFinished, fireTestIgnored, fireTestRunFinished, fireTestRunStarted, pleaseStop
public Notifier(JUnit4RunListener reporter, int skipAfterFailureCount)
public static Notifier pureNotifier()
public Notifier asFailFast(boolean failFast)
public final boolean isFailFast()
public final void fireTestStarted(Description description) throws StoppedByUserException
fireTestStarted
in class RunNotifier
StoppedByUserException
public final void fireTestFailure(Failure failure)
fireTestFailure
in class RunNotifier
public final void addListener(RunListener listener)
addListener
in class RunNotifier
public final Notifier addListeners(Collection<RunListener> given)
public final Notifier addListeners(RunListener... given)
public final void removeListener(RunListener listener)
removeListener
in class RunNotifier
public final void removeListeners()
public final void copyListenersTo(Notifier copyTo)
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.