java.lang.Object
org.junit.platform.engine.ExecutionRequest
Provides a single
TestEngine
access to the information necessary to
execute its tests.
A request contains an engine's root TestDescriptor
, the
EngineExecutionListener
to be notified of test execution events, and
ConfigurationParameters
that the engine may use to influence test
execution.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionExecutionRequest
(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutionRequest
create
(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters) Factory for creating an execution request.Get theConfigurationParameters
that the engine may use to influence test execution.Get theEngineExecutionListener
to be notified of test execution events.Get the rootTestDescriptor
of the engine that processes this request.
-
Constructor Details
-
ExecutionRequest
@API(status=INTERNAL, since="1.0") public ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)
-
-
Method Details
-
create
@API(status=STABLE, since="1.9") public static ExecutionRequest create(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters) Factory for creating an execution request.- Parameters:
rootTestDescriptor
- the engine's rootTestDescriptor
engineExecutionListener
- theEngineExecutionListener
to be notified of test execution eventsconfigurationParameters
-ConfigurationParameters
that the engine may use to influence test execution- Returns:
- a new
ExecutionRequest
; nevernull
- Since:
- 1.9
-
getRootTestDescriptor
Get the rootTestDescriptor
of the engine that processes this request.Note: the root descriptor is the
TestDescriptor
returned byTestEngine.discover(EngineDiscoveryRequest, UniqueId)
. -
getEngineExecutionListener
Get theEngineExecutionListener
to be notified of test execution events. -
getConfigurationParameters
Get theConfigurationParameters
that the engine may use to influence test execution.
-