Module org.junit.jupiter.engine
Package org.junit.jupiter.engine.config
Class DefaultJupiterConfiguration
- java.lang.Object
-
- org.junit.jupiter.engine.config.DefaultJupiterConfiguration
-
- All Implemented Interfaces:
JupiterConfiguration
@API(status=INTERNAL, since="5.4") public class DefaultJupiterConfiguration extends Object implements JupiterConfiguration
Default implementation of theJupiterConfiguration
API.- Since:
- 5.4
-
-
Field Summary
-
Fields inherited from interface org.junit.jupiter.engine.config.JupiterConfiguration
DEACTIVATE_ALL_CONDITIONS_PATTERN, DEACTIVATE_CONDITIONS_PATTERN_PROPERTY_NAME, DEFAULT_AFTER_ALL_METHOD_TIMEOUT_PROPERTY_NAME, DEFAULT_AFTER_EACH_METHOD_TIMEOUT_PROPERTY_NAME, DEFAULT_BEFORE_ALL_METHOD_TIMEOUT_PROPERTY_NAME, DEFAULT_BEFORE_EACH_METHOD_TIMEOUT_PROPERTY_NAME, DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME, DEFAULT_DISPLAY_NAME_GENERATOR_PROPERTY_NAME, DEFAULT_EXECUTION_MODE_PROPERTY_NAME, DEFAULT_LIFECYCLE_METHOD_TIMEOUT_PROPERTY_NAME, DEFAULT_TEST_FACTORY_METHOD_TIMEOUT_PROPERTY_NAME, DEFAULT_TEST_INSTANCE_LIFECYCLE_PROPERTY_NAME, DEFAULT_TEST_METHOD_ORDER_PROPERTY_NAME, DEFAULT_TEST_METHOD_TIMEOUT_PROPERTY_NAME, DEFAULT_TEST_TEMPLATE_METHOD_TIMEOUT_PROPERTY_NAME, DEFAULT_TESTABLE_METHOD_TIMEOUT_PROPERTY_NAME, DEFAULT_TIMEOUT_PROPERTY_NAME, EXTENSIONS_AUTODETECTION_ENABLED_PROPERTY_NAME, PARALLEL_EXECUTION_ENABLED_PROPERTY_NAME, TIMEOUT_MODE_PROPERTY_NAME
-
-
Constructor Summary
Constructors Constructor Description DefaultJupiterConfiguration(ConfigurationParameters configurationParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionMode
getDefaultClassesExecutionMode()
DisplayNameGenerator
getDefaultDisplayNameGenerator()
ExecutionMode
getDefaultExecutionMode()
TestInstance.Lifecycle
getDefaultTestInstanceLifecycle()
Optional<MethodOrderer>
getDefaultTestMethodOrderer()
Predicate<ExecutionCondition>
getExecutionConditionFilter()
Optional<String>
getRawConfigurationParameter(String key)
<T> Optional<T>
getRawConfigurationParameter(String key, Function<String,T> transformer)
boolean
isExtensionAutoDetectionEnabled()
boolean
isParallelExecutionEnabled()
-
-
-
Constructor Detail
-
DefaultJupiterConfiguration
public DefaultJupiterConfiguration(ConfigurationParameters configurationParameters)
-
-
Method Detail
-
getRawConfigurationParameter
public Optional<String> getRawConfigurationParameter(String key)
- Specified by:
getRawConfigurationParameter
in interfaceJupiterConfiguration
-
getRawConfigurationParameter
public <T> Optional<T> getRawConfigurationParameter(String key, Function<String,T> transformer)
- Specified by:
getRawConfigurationParameter
in interfaceJupiterConfiguration
-
isParallelExecutionEnabled
public boolean isParallelExecutionEnabled()
- Specified by:
isParallelExecutionEnabled
in interfaceJupiterConfiguration
-
isExtensionAutoDetectionEnabled
public boolean isExtensionAutoDetectionEnabled()
- Specified by:
isExtensionAutoDetectionEnabled
in interfaceJupiterConfiguration
-
getDefaultExecutionMode
public ExecutionMode getDefaultExecutionMode()
- Specified by:
getDefaultExecutionMode
in interfaceJupiterConfiguration
-
getDefaultClassesExecutionMode
public ExecutionMode getDefaultClassesExecutionMode()
- Specified by:
getDefaultClassesExecutionMode
in interfaceJupiterConfiguration
-
getDefaultTestInstanceLifecycle
public TestInstance.Lifecycle getDefaultTestInstanceLifecycle()
- Specified by:
getDefaultTestInstanceLifecycle
in interfaceJupiterConfiguration
-
getExecutionConditionFilter
public Predicate<ExecutionCondition> getExecutionConditionFilter()
- Specified by:
getExecutionConditionFilter
in interfaceJupiterConfiguration
-
getDefaultDisplayNameGenerator
public DisplayNameGenerator getDefaultDisplayNameGenerator()
- Specified by:
getDefaultDisplayNameGenerator
in interfaceJupiterConfiguration
-
getDefaultTestMethodOrderer
public Optional<MethodOrderer> getDefaultTestMethodOrderer()
- Specified by:
getDefaultTestMethodOrderer
in interfaceJupiterConfiguration
-
-