public class Notifier
extends org.junit.runner.notification.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(org.junit.runner.notification.RunListener listener) |
Notifier |
addListeners(Collection<org.junit.runner.notification.RunListener> given) |
Notifier |
addListeners(org.junit.runner.notification.RunListener... given) |
void |
asFailFast(boolean enableFailFast) |
void |
copyListenersTo(Notifier copyTo) |
void |
fireTestFailure(org.junit.runner.notification.Failure failure) |
void |
fireTestStarted(org.junit.runner.Description description) |
Queue<String> |
getRemainingTestClasses() |
boolean |
isFailFast() |
static Notifier |
pureNotifier() |
void |
removeListener(org.junit.runner.notification.RunListener listener) |
void |
removeListeners() |
public Notifier(JUnit4RunListener reporter, int skipAfterFailureCount)
public static Notifier pureNotifier()
public void asFailFast(boolean enableFailFast)
public final boolean isFailFast()
public final void fireTestStarted(org.junit.runner.Description description)
throws org.junit.runner.notification.StoppedByUserException
fireTestStarted in class org.junit.runner.notification.RunNotifierorg.junit.runner.notification.StoppedByUserExceptionpublic final void fireTestFailure(org.junit.runner.notification.Failure failure)
fireTestFailure in class org.junit.runner.notification.RunNotifierpublic final void addListener(org.junit.runner.notification.RunListener listener)
addListener in class org.junit.runner.notification.RunNotifierpublic final Notifier addListeners(Collection<org.junit.runner.notification.RunListener> given)
public final Notifier addListeners(org.junit.runner.notification.RunListener... given)
public final void removeListener(org.junit.runner.notification.RunListener listener)
removeListener in class org.junit.runner.notification.RunNotifierpublic final void removeListeners()
public final void copyListenersTo(Notifier copyTo)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.