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:

This interface is not intended to be implemented by clients.

Since:
6.0
See Also:
  • Method Details

    • getTestPlan

      Optional<TestPlan> getTestPlan()
      Returns the test plan for this execution request.

      If absent, a TestPlan will be present.

      Returns:
      the test plan for this execution request
    • getDiscoveryRequest

      Optional<LauncherDiscoveryRequest> getDiscoveryRequest()
      Returns the discovery request for this execution request.

      If absent, a TestPlan will 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

      CancellationToken getCancellationToken()
      Returns the cancellation token for this execution request.
      Returns:
      the cancellation token for this execution request