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