Top Description Fields Constructors Methods
org.junit.platform.engine

public Class ExecutionRequest

extends Object
Class Inheritance
Annotations
@API
status:STABLE
since:1.0
Static Imports
org.apiguardian.api.API.Status.INTERNAL, .API.Status.STABLE

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
TestEngine

Field Summary

Modifier and TypeField and Description
private final ConfigurationParameters
private final EngineExecutionListener
private final TestDescriptor

Constructor Summary

AccessConstructor and Description
public
ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)

Method Summary

Modifier and TypeMethod and Description
public static ExecutionRequest

Returns:

a new ExecutionRequest; never null
create
(TestDescriptor
the engine's root TestDescriptor
rootTestDescriptor
,
EngineExecutionListener
the EngineExecutionListener to be notified of test execution events
engineExecutionListener
,
ConfigurationParameters
ConfigurationParameters that the engine may use to influence test execution
configurationParameters
)

Factory for creating an execution request.

public ConfigurationParameters
getConfigurationParameters()

Get the ConfigurationParameters that the engine may use to influence test execution.

public EngineExecutionListener
getEngineExecutionListener()

Get the EngineExecutionListener to be notified of test execution events.

public TestDescriptor
getRootTestDescriptor()

Get the root TestDescriptor of the engine that processes this request.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configurationParametersback to summary
private final ConfigurationParameters configurationParameters
engineExecutionListenerback to summary
private final EngineExecutionListener engineExecutionListener
rootTestDescriptorback to summary
private final TestDescriptor rootTestDescriptor

Constructor Detail

ExecutionRequestback to summary
public ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)
Annotations
@API
status:INTERNAL
since:1.0

Method Detail

createback to summary
public static ExecutionRequest create(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)

Factory for creating an execution request.

Parameters
rootTestDescriptor:TestDescriptor

the engine's root TestDescriptor

engineExecutionListener:EngineExecutionListener

the EngineExecutionListener to be notified of test execution events

configurationParameters:ConfigurationParameters

ConfigurationParameters that the engine may use to influence test execution

Returns:ExecutionRequest

a new ExecutionRequest; never null

Annotations
@API
status:STABLE
since:1.9
Since
1.9
getConfigurationParametersback to summary
public ConfigurationParameters getConfigurationParameters()

Get the ConfigurationParameters that the engine may use to influence test execution.

getEngineExecutionListenerback to summary
public EngineExecutionListener getEngineExecutionListener()

Get the EngineExecutionListener to be notified of test execution events.

getRootTestDescriptorback to summary
public TestDescriptor getRootTestDescriptor()

Get the root TestDescriptor of the engine that processes this request.

Note

the root descriptor is the TestDescriptor returned by TestEngine#discover(EngineDiscoveryRequest, UniqueId).