Top Description Methods
org.junit.platform.launcher

public Interface LauncherExecutionRequest

Known Direct Implementers
org.junit.platform.launcher.core.DefaultLauncherExecutionRequest
Annotations
@API
status:MAINTAINED
since:6.0
Static Imports
org.apiguardian.api.API.Status.MAINTAINED

LauncherExecutionRequest encapsulates a request for test execution passed to the Launcher.

Most importantly, a LauncherExecutionRequest contains either a LauncherDiscoveryRequest for on-the-fly test discovery or a TestPlan that has previously been discovered.

Moreover, a LauncherExecutionRequest may contain the following:

This interface is not intended to be implemented by clients.

Since
6.0
See Also
org.junit.platform.launcher.core.LauncherExecutionRequestBuilder, Launcher#execute(LauncherExecutionRequest)

Method Summary

Modifier and TypeMethod and Description
public Collection<? extends TestExecutionListener>

Returns:

the collection of additional test execution listeners that should be notified about events pertaining to this execution request
getAdditionalTestExecutionListeners
()

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

public CancellationToken

Returns:

the cancellation token for this execution request
getCancellationToken
()

Returns the cancellation token for this execution request.

public Optional<LauncherDiscoveryRequest>

Returns:

the discovery request for this execution request
getDiscoveryRequest
()

Returns the discovery request for this execution request.

public Optional<TestPlan>

Returns:

the test plan for this execution request
getTestPlan
()

Returns the test plan for this execution request.

Method Detail

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

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

Returns:Collection<? extends TestExecutionListener>

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

getCancellationTokenback to summary
public CancellationToken getCancellationToken()

Returns the cancellation token for this execution request.

Returns:CancellationToken

the cancellation token for this execution request

getDiscoveryRequestback to summary
public Optional<LauncherDiscoveryRequest> getDiscoveryRequest()

Returns the discovery request for this execution request.

If absent, a TestPlan will be present.

Returns:Optional<LauncherDiscoveryRequest>

the discovery request for this execution request

getTestPlanback to summary
public Optional<TestPlan> getTestPlan()

Returns the test plan for this execution request.

If absent, a TestPlan will be present.

Returns:Optional<TestPlan>

the test plan for this execution request