Top Fields Constructors Methods
org.junit.platform.launcher.core

pack-priv final Class DefaultLauncherExecutionRequest

extends Object
implements LauncherExecutionRequest
Class Inheritance
All Implemented Interfaces
org.junit.platform.launcher.LauncherExecutionRequest
Imports
java.util.Collection, .List, .Optional, org.jspecify.annotations.Nullable, org.junit.platform.engine.CancellationToken, org.junit.platform.launcher.LauncherDiscoveryRequest, .LauncherExecutionRequest, .TestExecutionListener, .TestPlan

Since
6.0

Field Summary

Modifier and TypeField and Description
private final CancellationToken
private final @Nullable LauncherDiscoveryRequest
private final List<? extends TestExecutionListener>
private final @Nullable TestPlan

Constructor Summary

AccessConstructor and Description
pack-priv
DefaultLauncherExecutionRequest(@Nullable LauncherDiscoveryRequest discoveryRequest, @Nullable TestPlan testPlan, Collection<? extends TestExecutionListener> executionListeners, CancellationToken cancellationToken)

Method Summary

Modifier and TypeMethod and Description
public Collection<? extends TestExecutionListener>
getAdditionalTestExecutionListeners()

Implements org.junit.platform.launcher.LauncherExecutionRequest.getAdditionalTestExecutionListeners.

Returns the collection of additional test execution listeners that should be notified about events pertaining to this execution request.

public CancellationToken
getCancellationToken()

Implements org.junit.platform.launcher.LauncherExecutionRequest.getCancellationToken.

Returns the cancellation token for this execution request.

public Optional<LauncherDiscoveryRequest>
getDiscoveryRequest()

Implements org.junit.platform.launcher.LauncherExecutionRequest.getDiscoveryRequest.

Returns the discovery request for this execution request.

public Optional<TestPlan>
getTestPlan()

Implements org.junit.platform.launcher.LauncherExecutionRequest.getTestPlan.

Returns the test plan for this execution request.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cancellationTokenback to summary
private final CancellationToken cancellationToken
discoveryRequestback to summary
private final @Nullable LauncherDiscoveryRequest discoveryRequest
executionListenersback to summary
private final List<? extends TestExecutionListener> executionListeners
testPlanback to summary
private final @Nullable TestPlan testPlan

Constructor Detail

DefaultLauncherExecutionRequestback to summary
pack-priv DefaultLauncherExecutionRequest(@Nullable LauncherDiscoveryRequest discoveryRequest, @Nullable TestPlan testPlan, Collection<? extends TestExecutionListener> executionListeners, CancellationToken cancellationToken)

Method Detail

getAdditionalTestExecutionListenersback to summary
public Collection<? extends TestExecutionListener> getAdditionalTestExecutionListeners()

Implements org.junit.platform.launcher.LauncherExecutionRequest.getAdditionalTestExecutionListeners.

Doc from org.junit.platform.launcher.LauncherExecutionRequest.getAdditionalTestExecutionListeners.

Returns the collection of additional test execution listeners that should be notified about events pertaining to this execution request.

Annotations
@Override
getCancellationTokenback to summary
public CancellationToken getCancellationToken()

Implements org.junit.platform.launcher.LauncherExecutionRequest.getCancellationToken.

Doc from org.junit.platform.launcher.LauncherExecutionRequest.getCancellationToken.

Returns the cancellation token for this execution request.

Annotations
@Override
getDiscoveryRequestback to summary
public Optional<LauncherDiscoveryRequest> getDiscoveryRequest()

Implements org.junit.platform.launcher.LauncherExecutionRequest.getDiscoveryRequest.

Doc from org.junit.platform.launcher.LauncherExecutionRequest.getDiscoveryRequest.

Returns the discovery request for this execution request.

If absent, a TestPlan will be present.

Annotations
@Override
getTestPlanback to summary
public Optional<TestPlan> getTestPlan()

Implements org.junit.platform.launcher.LauncherExecutionRequest.getTestPlan.

Doc from org.junit.platform.launcher.LauncherExecutionRequest.getTestPlan.

Returns the test plan for this execution request.

If absent, a TestPlan will be present.

Annotations
@Override