Class Constants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty name used to enable auto-closing ofAutoCloseableinstancesstatic final StringWildcard pattern which signals that all conditions should be deactivated: "*"static final StringProperty name used to provide patterns for deactivating conditions: "junit.jupiter.conditions.deactivate"static final StringProperty name used to set the default timeout for all@AfterAllmethods: "junit.jupiter.execution.timeout.afterall.method.default".static final StringProperty name used to set the default timeout for all@AfterEachmethods: "junit.jupiter.execution.timeout.aftereach.method.default".static final StringProperty name used to set the default timeout for all@BeforeAllmethods: "junit.jupiter.execution.timeout.beforeall.method.default".static final StringProperty name used to set the default timeout for all@BeforeEachmethods: "junit.jupiter.execution.timeout.beforeeach.method.default".static final StringProperty name used to set the default test execution mode for top-level classes: "junit.jupiter.execution.parallel.mode.classes.default"static final StringProperty name used to set the default display name generator class name: "junit.jupiter.displayname.generator.default"static final StringProperty name used to set the default timeout for all lifecycle methods: "junit.jupiter.execution.timeout.lifecycle.method.default".static final StringProperty name used to set the default test execution mode: "junit.jupiter.execution.parallel.mode.default"static final StringProperty name used to set the default factory for temporary directories created via the@TempDirannotation: "junit.jupiter.tempdir.factory.default"static final StringProperty name used to set the default extension context scope for extensions that participate in test instantiation: "junit.jupiter.extensions.testinstantiation.extensioncontextscope.default"static final StringProperty name used to set the default class orderer class name: "junit.jupiter.testclass.order.default"static final StringProperty name used to set the default timeout for all@TestFactorymethods: "junit.jupiter.execution.timeout.testfactory.method.default".static final StringProperty name used to set the default test instance lifecycle mode: "junit.jupiter.testinstance.lifecycle.default"static final StringProperty name used to set the default method orderer class name: "junit.jupiter.testmethod.order.default"static final StringProperty name used to set the default timeout for all@Testmethods: "junit.jupiter.execution.timeout.test.method.default".static final StringProperty name used to set the default timeout for all@TestTemplatemethods: "junit.jupiter.execution.timeout.testtemplate.method.default".static final StringProperty name used to set the default timeout for all testable methods: "junit.jupiter.execution.timeout.testable.method.default".static final StringProperty name used to set the default timeout for all testable and lifecycle methods: "junit.jupiter.execution.timeout.default".static final StringProperty name used to set the default timeout thread mode.static final StringProperty name used to enable auto-detection and registration of extensions via Java'sServiceLoadermechanism: "junit.jupiter.extensions.autodetection.enabled"static final StringProperty name used to exclude patterns for auto-detecting extensions: "junit.jupiter.extensions.autodetection.exclude"static final StringProperty name used to include patterns for auto-detecting extensions: "junit.jupiter.extensions.autodetection.include"static final StringProperty name used to enable dumping the stack of all threads toSystem.outwhen a timeout has occurred.static final StringProperty name used to specify the fully qualified class name of theParallelExecutionConfigurationStrategyto be used for thecustomconfiguration strategy: "junit.jupiter.execution.parallel.config.custom.class"static final StringProperty name used to set the factor to be multiplied with the number of available processors/cores to determine the desired parallelism for thedynamicconfiguration strategy: "junit.jupiter.execution.parallel.config.dynamic.factor"static final StringProperty name used to configure the maximum pool size of the underlying fork-join pool for thefixedconfiguration strategy: "junit.jupiter.execution.parallel.config.fixed.max-pool-size"static final StringProperty name used to set the desired parallelism for thefixedconfiguration strategy: "junit.jupiter.execution.parallel.config.fixed.parallelism"static final StringProperty name used to disable saturation of the underlying fork-join pool for thefixedconfiguration strategy: "junit.jupiter.execution.parallel.config.fixed.saturate"static final StringProperty name used to select theParallelExecutionConfigurationStrategy: "junit.jupiter.execution.parallel.config.strategy"static final StringProperty name used to enable parallel test execution: "junit.jupiter.execution.parallel.enabled"static final StringProperty name used to configure whether timeouts are applied to tests: "junit.jupiter.execution.timeout.mode". -
Method Summary
-
Field Details
-
EXTENSIONS_AUTODETECTION_INCLUDE_PROPERTY_NAME
Property name used to include patterns for auto-detecting extensions: "junit.jupiter.extensions.autodetection.include"Pattern Matching Syntax
If the property value consists solely of an asterisk (
*), all extensions will be included. Otherwise, the property value will be treated as a comma-separated list of patterns where each individual pattern will be matched against the fully qualified class name (FQCN) of each extension. Any dot (.) in a pattern will match against a dot (.) or a dollar sign ($) in a FQCN. Any asterisk (*) will match against one or more characters in a FQCN. All other characters in a pattern will be matched one-to-one against a FQCN.Examples
*: includes all extensions.org.junit.*: includes every extension under theorg.junitbase package and any of its subpackages.*.MyExtension: includes every extension whose simple class name is exactlyMyExtension.*System*: includes every extension whose FQCN containsSystem.*System*, *Dev*: includes every extension whose FQCN containsSystemorDev.org.example.MyExtension, org.example.TheirExtension: includes extensions whose FQCN is exactlyorg.example.MyExtensionororg.example.TheirExtension.
Note: A class that matches both an inclusion and exclusion pattern will be excluded.
- See Also:
-
EXTENSIONS_AUTODETECTION_EXCLUDE_PROPERTY_NAME
Property name used to exclude patterns for auto-detecting extensions: "junit.jupiter.extensions.autodetection.exclude"Pattern Matching Syntax
If the property value consists solely of an asterisk (
*), all extensions will be excluded. Otherwise, the property value will be treated as a comma-separated list of patterns where each individual pattern will be matched against the fully qualified class name (FQCN) of each extension. Any dot (.) in a pattern will match against a dot (.) or a dollar sign ($) in a FQCN. Any asterisk (*) will match against one or more characters in a FQCN. All other characters in a pattern will be matched one-to-one against a FQCN.Examples
*: excludes all extensions.org.junit.*: excludes every extension under theorg.junitbase package and any of its subpackages.*.MyExtension: excludes every extension whose simple class name is exactlyMyExtension.*System*: excludes every extension whose FQCN containsSystem.*System*, *Dev*: excludes every extension whose FQCN containsSystemorDev.org.example.MyExtension, org.example.TheirExtension: excludes extensions whose FQCN is exactlyorg.example.MyExtensionororg.example.TheirExtension.
Note: A class that matches both an inclusion and exclusion pattern will be excluded.
- See Also:
-
DEACTIVATE_CONDITIONS_PATTERN_PROPERTY_NAME
Property name used to provide patterns for deactivating conditions: "junit.jupiter.conditions.deactivate"Pattern Matching Syntax
If the property value consists solely of an asterisk (
*), all conditions will be deactivated. Otherwise, the property value will be treated as a comma-separated list of patterns where each individual pattern will be matched against the fully qualified class name (FQCN) of each registered condition. Any dot (.) in a pattern will match against a dot (.) or a dollar sign ($) in a FQCN. Any asterisk (*) will match against one or more characters in a FQCN. All other characters in a pattern will be matched one-to-one against a FQCN.Examples
*: deactivates all conditions.org.junit.*: deactivates every condition under theorg.junitbase package and any of its subpackages.*.MyCondition: deactivates every condition whose simple class name is exactlyMyCondition.*System*: deactivates every condition whose FQCN containsSystem.*System*, *Dev*: deactivates every condition whose FQCN containsSystemorDev.org.example.MyCondition, org.example.TheirCondition: deactivates conditions whose FQCN is exactlyorg.example.MyConditionororg.example.TheirCondition.
- See Also:
-
DEACTIVATE_ALL_CONDITIONS_PATTERN
Wildcard pattern which signals that all conditions should be deactivated: "*"- See Also:
-
DEFAULT_DISPLAY_NAME_GENERATOR_PROPERTY_NAME
Property name used to set the default display name generator class name: "junit.jupiter.displayname.generator.default"- See Also:
-
EXTENSIONS_AUTODETECTION_ENABLED_PROPERTY_NAME
Property name used to enable auto-detection and registration of extensions via Java'sServiceLoadermechanism: "junit.jupiter.extensions.autodetection.enabled"The default behavior is not to perform auto-detection.
- See Also:
-
EXTENSIONS_TIMEOUT_THREAD_DUMP_ENABLED_PROPERTY_NAME
-
DEFAULT_TEST_INSTANCE_LIFECYCLE_PROPERTY_NAME
Property name used to set the default test instance lifecycle mode: "junit.jupiter.testinstance.lifecycle.default"- See Also:
-
PARALLEL_EXECUTION_ENABLED_PROPERTY_NAME
-
CLOSING_STORED_AUTO_CLOSEABLE_ENABLED_PROPERTY_NAME
@API(status=EXPERIMENTAL, since="6.0") public static final String CLOSING_STORED_AUTO_CLOSEABLE_ENABLED_PROPERTY_NAMEProperty name used to enable auto-closing ofAutoCloseableinstancesBy default, auto-closing is enabled.
- Since:
- 5.13
- See Also:
-
DEFAULT_PARALLEL_EXECUTION_MODE
-
DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME
-
PARALLEL_CONFIG_STRATEGY_PROPERTY_NAME
-
PARALLEL_CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
@API(status=STABLE, since="5.10") public static final String PARALLEL_CONFIG_FIXED_PARALLELISM_PROPERTY_NAMEProperty name used to set the desired parallelism for thefixedconfiguration strategy: "junit.jupiter.execution.parallel.config.fixed.parallelism"No default value; must be a positive integer.
- Since:
- 5.3
- See Also:
-
PARALLEL_CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME
@API(status=MAINTAINED, since="5.13.3") public static final String PARALLEL_CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAMEProperty name used to configure the maximum pool size of the underlying fork-join pool for thefixedconfiguration strategy: "junit.jupiter.execution.parallel.config.fixed.max-pool-size"Value must be an integer and greater than or equal to "junit.jupiter.execution.parallel.config.fixed.parallelism"; defaults to
256 + fixed.parallelism.Note: This property only takes affect on Java 9+.
- Since:
- 5.10
- See Also:
-
PARALLEL_CONFIG_FIXED_SATURATE_PROPERTY_NAME
@API(status=MAINTAINED, since="5.13.3") public static final String PARALLEL_CONFIG_FIXED_SATURATE_PROPERTY_NAMEProperty name used to disable saturation of the underlying fork-join pool for thefixedconfiguration strategy: "junit.jupiter.execution.parallel.config.fixed.saturate"When set to
falsethe underlying fork-join pool will reject additional tasks if all available workers are busy and the maximum pool-size would be exceeded.Value must either
trueorfalse; defaults totrue.Note: This property only takes affect on Java 9+.
- Since:
- 5.10
- See Also:
-
PARALLEL_CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
@API(status=STABLE, since="5.10") public static final String PARALLEL_CONFIG_DYNAMIC_FACTOR_PROPERTY_NAMEProperty name used to set the factor to be multiplied with the number of available processors/cores to determine the desired parallelism for thedynamicconfiguration strategy: "junit.jupiter.execution.parallel.config.dynamic.factor"Value must be a positive decimal number; defaults to
1.- Since:
- 5.3
- See Also:
-
PARALLEL_CONFIG_CUSTOM_CLASS_PROPERTY_NAME
@API(status=STABLE, since="5.10") public static final String PARALLEL_CONFIG_CUSTOM_CLASS_PROPERTY_NAMEProperty name used to specify the fully qualified class name of theParallelExecutionConfigurationStrategyto be used for thecustomconfiguration strategy: "junit.jupiter.execution.parallel.config.custom.class"- Since:
- 5.3
- See Also:
-
DEFAULT_TIMEOUT_PROPERTY_NAME
-
DEFAULT_TESTABLE_METHOD_TIMEOUT_PROPERTY_NAME
-
DEFAULT_TEST_METHOD_TIMEOUT_PROPERTY_NAME
-
DEFAULT_TEST_TEMPLATE_METHOD_TIMEOUT_PROPERTY_NAME
-
DEFAULT_TEST_FACTORY_METHOD_TIMEOUT_PROPERTY_NAME
-
DEFAULT_LIFECYCLE_METHOD_TIMEOUT_PROPERTY_NAME
-
DEFAULT_BEFORE_ALL_METHOD_TIMEOUT_PROPERTY_NAME
-
DEFAULT_BEFORE_EACH_METHOD_TIMEOUT_PROPERTY_NAME
-
DEFAULT_AFTER_EACH_METHOD_TIMEOUT_PROPERTY_NAME
-
DEFAULT_AFTER_ALL_METHOD_TIMEOUT_PROPERTY_NAME
-
TIMEOUT_MODE_PROPERTY_NAME
-
DEFAULT_TEST_METHOD_ORDER_PROPERTY_NAME
-
DEFAULT_TEST_CLASS_ORDER_PROPERTY_NAME
-
DEFAULT_TIMEOUT_THREAD_MODE_PROPERTY_NAME
@API(status=MAINTAINED, since="5.13.3") public static final String DEFAULT_TIMEOUT_THREAD_MODE_PROPERTY_NAMEProperty name used to set the default timeout thread mode.- Since:
- 5.9
- See Also:
-
DEFAULT_TEMP_DIR_FACTORY_PROPERTY_NAME
-
DEFAULT_TEST_CLASS_INSTANCE_CONSTRUCTION_EXTENSION_CONTEXT_SCOPE_PROPERTY_NAME
@API(status=MAINTAINED, since="5.13.3") public static final String DEFAULT_TEST_CLASS_INSTANCE_CONSTRUCTION_EXTENSION_CONTEXT_SCOPE_PROPERTY_NAMEProperty name used to set the default extension context scope for extensions that participate in test instantiation: "junit.jupiter.extensions.testinstantiation.extensioncontextscope.default"- Since:
- 5.12
- See Also:
-