@API(status=STABLE,
since="1.0")
public class ExecutionRequest
extends java.lang.Object
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.
TestEngine
Modifier and Type | Field and Description |
---|---|
private ConfigurationParameters |
configurationParameters |
private EngineExecutionListener |
engineExecutionListener |
private TestDescriptor |
rootTestDescriptor |
Constructor and Description |
---|
ExecutionRequest(TestDescriptor rootTestDescriptor,
EngineExecutionListener engineExecutionListener,
ConfigurationParameters configurationParameters) |
Modifier and Type | Method and Description |
---|---|
ConfigurationParameters |
getConfigurationParameters()
Get the
ConfigurationParameters that the engine may use to
influence test execution. |
EngineExecutionListener |
getEngineExecutionListener()
Get the
EngineExecutionListener to be notified of test execution
events. |
TestDescriptor |
getRootTestDescriptor()
Get the root
TestDescriptor of the engine that processes this
request. |
private final TestDescriptor rootTestDescriptor
private final EngineExecutionListener engineExecutionListener
private final ConfigurationParameters configurationParameters
@API(status=INTERNAL, since="1.0") public ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)
public TestDescriptor getRootTestDescriptor()
TestDescriptor
of the engine that processes this
request.
Note: the root descriptor is the
TestDescriptor
returned by
TestEngine.discover(EngineDiscoveryRequest, UniqueId)
.
public EngineExecutionListener getEngineExecutionListener()
EngineExecutionListener
to be notified of test execution
events.public ConfigurationParameters getConfigurationParameters()
ConfigurationParameters
that the engine may use to
influence test execution.