public class Notifier extends org.junit.runner.notification.RunNotifier implements Stoppable
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 |
fireStopEvent()
Fire stop even to plugin process and/or call
RunNotifier.pleaseStop(). |
void |
removeListener(org.junit.runner.notification.RunListener listener) |
void |
removeListeners() |
public Notifier(JUnit4RunListener reporter, int skipAfterFailureCount)
public void fireStopEvent()
StoppableRunNotifier.pleaseStop().fireStopEvent in interface Stoppablepublic void addListener(org.junit.runner.notification.RunListener listener)
addListener in class org.junit.runner.notification.RunNotifierpublic Notifier addListeners(Collection<org.junit.runner.notification.RunListener> given)
public Notifier addListeners(org.junit.runner.notification.RunListener... given)
public void removeListener(org.junit.runner.notification.RunListener listener)
removeListener in class org.junit.runner.notification.RunNotifierpublic void removeListeners()
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.