Package org.junit.platform.engine
Class ExecutionRequest
- java.lang.Object
-
- org.junit.platform.engine.ExecutionRequest
-
@API(status=STABLE, since="1.0") public class ExecutionRequest extends java.lang.ObjectProvides a singleTestEngineaccess to the information necessary to execute its tests.A request contains an engine's root
TestDescriptor, theEngineExecutionListenerto be notified of test execution events, andConfigurationParametersthat the engine may use to influence test execution.- Since:
- 1.0
- See Also:
TestEngine
-
-
Field Summary
Fields Modifier and Type Field Description private ConfigurationParametersconfigurationParametersprivate EngineExecutionListenerengineExecutionListenerprivate TestDescriptorrootTestDescriptor
-
Constructor Summary
Constructors Constructor Description ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationParametersgetConfigurationParameters()Get theConfigurationParametersthat the engine may use to influence test execution.EngineExecutionListenergetEngineExecutionListener()Get theEngineExecutionListenerto be notified of test execution events.TestDescriptorgetRootTestDescriptor()Get the rootTestDescriptorof the engine that processes this request.
-
-
-
Field Detail
-
rootTestDescriptor
private final TestDescriptor rootTestDescriptor
-
engineExecutionListener
private final EngineExecutionListener engineExecutionListener
-
configurationParameters
private final ConfigurationParameters configurationParameters
-
-
Constructor Detail
-
ExecutionRequest
@API(status=INTERNAL, since="1.0") public ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)
-
-
Method Detail
-
getRootTestDescriptor
public TestDescriptor getRootTestDescriptor()
Get the rootTestDescriptorof the engine that processes this request.Note: the root descriptor is the
TestDescriptorreturned byTestEngine.discover(EngineDiscoveryRequest, UniqueId).
-
getEngineExecutionListener
public EngineExecutionListener getEngineExecutionListener()
Get theEngineExecutionListenerto be notified of test execution events.
-
getConfigurationParameters
public ConfigurationParameters getConfigurationParameters()
Get theConfigurationParametersthat the engine may use to influence test execution.
-
-