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, the
ConfigurationParameters that the engine may use to influence test
execution, and an OutputDirectoryCreator for writing reports and
other output files.
TestEngine
| Modifier and Type | Field and Description |
|---|---|
| private final CancellationToken | |
| private final ConfigurationParameters | |
| private final EngineExecutionListener | |
| private final @Nullable OutputDirectoryCreator | |
| private final @Nullable NamespacedHierarchicalStore | |
| private final TestDescriptor |
| Access | Constructor and Description |
|---|---|
| public | ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)
Deprecated
since 1.11. without replacement because it's an internal API.
|
| private | ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters, @Nullable OutputDirectoryCreator outputDirectoryCreator, @Nullable NamespacedHierarchicalStore<Namespace> requestLevelStore, CancellationToken cancellationToken)
|
| Modifier and Type | Method and Description |
|---|---|
| public static ExecutionRequest | Returns: a newExecutionRequest; never nullthe engine's root rootTestDescriptor, EngineExecutionListener TestDescriptorthe engineExecutionListener, ConfigurationParameters EngineExecutionListener to be
notified of test execution eventsConfigurationParameters that the
engine may use to influence test execution
Deprecated
since 1.11. without replacement
Factory for creating an execution request. |
| public static ExecutionRequest | Returns: a newExecutionRequest; never nullthe engine's root rootTestDescriptor, EngineExecutionListener TestDescriptor; never
nullthe engineExecutionListener, ConfigurationParameters EngineExecutionListener to be
notified of test execution events; never nullConfigurationParameters that the
engine may use to influence test execution; never nullOutputDirectoryCreator for
writing reports and other output files; never nullNamespacedHierarchicalStore for storing
request-scoped data; never nullFactory for creating an execution request. |
| public CancellationToken | Returns: theCancellationToken for this request for engines to
check whether they should cancel executionReturns the |
| public ConfigurationParameters | Returns: theConfigurationParameters that the engine may use to
influence test executionReturns the |
| public EngineExecutionListener | Returns: theEngineExecutionListener to be notified of test execution
eventsReturns the |
| public OutputDirectoryCreator | Returns: theOutputDirectoryCreator for this request for writing
reports and other output filesReturns the |
| public OutputDirectoryProvider | Returns: theorg. for
this request for writing reports and other output files
Deprecated
for removal since 1.14. Please use
getOutputDirectoryCreator() instead
Returns the
|
| public TestDescriptor | Returns: the rootTestDescriptor of the engine that processes this
requestReturns the root |
| public NamespacedHierarchicalStore | Returns: theNamespacedHierarchicalStore for this request for
storing request-scoped dataReturns the |
| cancellationToken | back to summary |
|---|---|
| private final CancellationToken cancellationToken | |
| configurationParameters | back to summary |
|---|---|
| private final ConfigurationParameters configurationParameters | |
| engineExecutionListener | back to summary |
|---|---|
| private final EngineExecutionListener engineExecutionListener | |
| outputDirectoryCreator | back to summary |
|---|---|
| private final @Nullable OutputDirectoryCreator outputDirectoryCreator | |
| requestLevelStore | back to summary |
|---|---|
| private final @Nullable NamespacedHierarchicalStore<Namespace> requestLevelStore | |
| rootTestDescriptor | back to summary |
|---|---|
| private final TestDescriptor rootTestDescriptor | |
| ExecutionRequest | back to summary |
|---|---|
| public ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)
Deprecated since 1.11. without replacement because it's an internal API.
| |
| ExecutionRequest | back to summary |
|---|---|
| private ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters, @Nullable OutputDirectoryCreator outputDirectoryCreator, @Nullable NamespacedHierarchicalStore<Namespace> requestLevelStore, CancellationToken cancellationToken) | |
| create | back to summary |
|---|---|
| public static ExecutionRequest create(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)
Deprecated since 1.11. without replacement Factory for creating an execution request.
| |
| create | back to summary |
|---|---|
| public static ExecutionRequest create(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters, OutputDirectoryCreator outputDirectoryCreator, NamespacedHierarchicalStore<Namespace> requestLevelStore, CancellationToken cancellationToken) Factory for creating an execution request.
| |
| getCancellationToken | back to summary |
|---|---|
| public CancellationToken getCancellationToken() Returns the
| |
| getConfigurationParameters | back to summary |
|---|---|
| public ConfigurationParameters getConfigurationParameters() Returns the
| |
| getEngineExecutionListener | back to summary |
|---|---|
| public EngineExecutionListener getEngineExecutionListener() Returns the
| |
| getOutputDirectoryCreator | back to summary |
|---|---|
| public OutputDirectoryCreator getOutputDirectoryCreator() Returns the
| |
| getOutputDirectoryProvider | back to summary |
|---|---|
| public OutputDirectoryProvider getOutputDirectoryProvider()
Returns the
| |
| getRootTestDescriptor | back to summary |
|---|---|
| public TestDescriptor getRootTestDescriptor() Returns the root Note the root descriptor is the
| |
| getStore | back to summary |
|---|---|
| public NamespacedHierarchicalStore Returns the All stored values that implement
| |