Class ParallelHierarchicalTestExecutorServiceFactory
java.lang.Object
org.junit.platform.engine.support.hierarchical.ParallelHierarchicalTestExecutorServiceFactory
@API(status=MAINTAINED,
since="6.1")
public final class ParallelHierarchicalTestExecutorServiceFactory
extends Object
Factory for
HierarchicalTestExecutorService instances that support
parallel execution.- Since:
- 6.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType ofHierarchicalTestExecutorServicethat supports parallel execution. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty name used to determine the desiredParallelExecutorServiceType. -
Method Summary
Modifier and TypeMethodDescriptioncreate(ConfigurationParameters configurationParameters) Create a newHierarchicalTestExecutorServicebased on the suppliedConfigurationParameters.create(ParallelHierarchicalTestExecutorServiceFactory.ParallelExecutorServiceType executorServiceType, ParallelExecutionConfiguration configuration) Create a newHierarchicalTestExecutorServicebased on the suppliedConfigurationParameters.
-
Field Details
-
EXECUTOR_SERVICE_PROPERTY_NAME
Property name used to determine the desiredParallelExecutorServiceType.Value must be
FORK_JOIN_POOLorWORKER_THREAD_POOL, ignoring case.- See Also:
-
-
Method Details
-
create
public static HierarchicalTestExecutorService create(ConfigurationParameters configurationParameters) Create a newHierarchicalTestExecutorServicebased on the suppliedConfigurationParameters.This method is typically invoked with an instance of
PrefixedConfigurationParametersthat was created with an engine-specific prefix.The "executor-service" key is used to determine which service implementation is to be used. Which other parameters are read depends on the configured
ParallelExecutionConfigurationStrategywhich is determined by the "strategy" key.- See Also:
-
create
public static HierarchicalTestExecutorService create(ParallelHierarchicalTestExecutorServiceFactory.ParallelExecutorServiceType executorServiceType, ParallelExecutionConfiguration configuration) Create a newHierarchicalTestExecutorServicebased on the suppliedConfigurationParameters.The "executor-service" key is ignored in favor of the supplied
ParallelHierarchicalTestExecutorServiceFactory.ParallelExecutorServiceTypeparameter when invoking this method.- See Also:
-