Top Fields Constructors Methods
org.junit.vintage.engine.execution

pack-priv Class CancellationTokenAwareRunNotifier

extends RunNotifier
Class Inheritance
Imports
org.junit.platform.engine.CancellationToken, org.junit.runner.Description, org.junit.runner.notification.RunNotifier, .StoppedByUserException

Since
6.0

Field Summary

Modifier and TypeField and Description
private final CancellationToken

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
fireTestStarted(Description description)

Overrides org.junit.runner.notification.RunNotifier.fireTestStarted.

Invoke to tell listeners that an atomic test is about to start.

Inherited from org.junit.runner.notification.RunNotifier:
addFirstListeneraddListenerfireTestAssumptionFailedfireTestFailurefireTestFinishedfireTestIgnoredfireTestRunFinishedfireTestRunStartedfireTestSuiteFinishedfireTestSuiteStartedpleaseStopremoveListener

Field Detail

cancellationTokenback to summary
private final CancellationToken cancellationToken

Constructor Detail

CancellationTokenAwareRunNotifierback to summary
pack-priv CancellationTokenAwareRunNotifier(CancellationToken cancellationToken)

Method Detail

fireTestStartedback to summary
public void fireTestStarted(Description description) throws StoppedByUserException

Overrides org.junit.runner.notification.RunNotifier.fireTestStarted.

Doc from org.junit.runner.notification.RunNotifier.fireTestStarted.

Invoke to tell listeners that an atomic test is about to start.

Annotations
@Override
Exceptions
StoppedByUserException:
thrown if a user has requested that the test run stop