Uses of Interface
org.junit.platform.engine.CancellationToken
Packages that use CancellationToken
Package
Description
Public API for test engines.
Public API for configuring and launching test plans.
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder
.Test Kit for testing the execution of a
TestEngine
running on the JUnit Platform.Internal classes for test execution within the JUnit Vintage test engine.
-
Uses of CancellationToken in org.junit.platform.engine
Methods in org.junit.platform.engine that return CancellationTokenModifier and TypeMethodDescriptionstatic CancellationToken
CancellationToken.create()
Create a new, uncancelled cancellation token.static CancellationToken
CancellationToken.disabled()
Get a new cancellation token that cannot be cancelled.ExecutionRequest.getCancellationToken()
Returns theCancellationToken
for this request for engines to check whether they should cancel execution.Methods in org.junit.platform.engine with parameters of type CancellationTokenModifier and TypeMethodDescriptionstatic ExecutionRequest
ExecutionRequest.create
(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters, OutputDirectoryProvider outputDirectoryProvider, NamespacedHierarchicalStore<Namespace> requestLevelStore, CancellationToken cancellationToken) Factory for creating an execution request. -
Uses of CancellationToken in org.junit.platform.launcher
Methods in org.junit.platform.launcher that return CancellationTokenModifier and TypeMethodDescriptionLauncherExecutionRequest.getCancellationToken()
Returns the cancellation token for this execution request. -
Uses of CancellationToken in org.junit.platform.launcher.core
Methods in org.junit.platform.launcher.core with parameters of type CancellationTokenModifier and TypeMethodDescriptionLauncherExecutionRequestBuilder.cancellationToken
(CancellationToken cancellationToken) Set the cancellation token for the request.void
EngineExecutionOrchestrator.execute
(LauncherDiscoveryResult discoveryResult, EngineExecutionListener engineExecutionListener, NamespacedHierarchicalStore<Namespace> requestLevelStore, CancellationToken cancellationToken) Executes tests for the supplied discovery results and notifies the supplied listener of execution events.void
EngineExecutionOrchestrator.execute
(LauncherDiscoveryResult discoveryResult, EngineExecutionListener engineExecutionListener, TestExecutionListener testExecutionListener, NamespacedHierarchicalStore<Namespace> requestLevelStore, CancellationToken cancellationToken) Executes tests for the supplied discoveryResult and notifies the supplied engineExecutionListener and testExecutionListener of execution events. -
Uses of CancellationToken in org.junit.platform.testkit.engine
Methods in org.junit.platform.testkit.engine with parameters of type CancellationTokenModifier and TypeMethodDescriptionEngineTestKit.Builder.cancellationToken
(CancellationToken cancellationToken) Set theCancellationToken
to use for execution. -
Uses of CancellationToken in org.junit.vintage.engine.execution
Methods in org.junit.vintage.engine.execution with parameters of type CancellationTokenModifier and TypeMethodDescriptionvoid
VintageExecutor.executeAllChildren
(CancellationToken cancellationToken) Constructors in org.junit.vintage.engine.execution with parameters of type CancellationTokenModifierConstructorDescriptionRunnerExecutor
(EngineExecutionListener engineExecutionListener, CancellationToken cancellationToken)