Interface LauncherExecutionRequest
@API(status=MAINTAINED,
since="6.0")
public interface LauncherExecutionRequest
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:
- Additional Test Execution Listeners that should be notified of events pertaining to this execution request.
This interface is not intended to be implemented by clients.
- Since:
- 6.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends TestExecutionListener> Returns the collection of additional test execution listeners that should be notified about events pertaining to this execution request.org.junit.platform.engine.CancellationTokenReturns the cancellation token for this execution request.Returns the discovery request for this execution request.Returns the test plan for this execution request.
-
Method Details
-
getTestPlan
-
getDiscoveryRequest
Optional<LauncherDiscoveryRequest> getDiscoveryRequest()Returns the discovery request for this execution request.If absent, a
TestPlanwill be present.- Returns:
- the discovery request for this execution request
-
getAdditionalTestExecutionListeners
Collection<? extends TestExecutionListener> getAdditionalTestExecutionListeners()Returns the collection of additional test execution listeners that should be notified about events pertaining to this execution request.- Returns:
- the collection of additional test execution listeners that should be notified about events pertaining to this execution request
-
getCancellationToken
org.junit.platform.engine.CancellationToken getCancellationToken()Returns the cancellation token for this execution request.- Returns:
- the cancellation token for this execution request
-