Class Constants

    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEACTIVATE_CONDITIONS_PATTERN_PROPERTY_NAME

        public static final java.lang.String DEACTIVATE_CONDITIONS_PATTERN_PROPERTY_NAME
        Property name used to provide a pattern for deactivating conditions: "junit.jupiter.conditions.deactivate"

        Pattern Matching Syntax

        If the pattern consists solely of an asterisk (*), all conditions will be deactivated. Otherwise, the pattern will be used to match against the fully qualified class name (FQCN) of each registered condition. Any dot (.) in the pattern will match against a dot (.) or a dollar sign ($) in the FQCN. Any asterisk (*) will match against one or more characters in the FQCN. All other characters in the pattern will be matched one-to-one against the FQCN.

        Examples

        • *: deactivates all conditions.
        • org.junit.*: deactivates every condition under the org.junit base package and any of its subpackages.
        • *.MyCondition: deactivates every condition whose simple class name is exactly MyCondition.
        • *System*: deactivates every condition whose simple class name contains System.
        • org.example.MyCondition: deactivates the condition whose FQCN is exactly org.example.MyCondition.
        See Also:
        DEACTIVATE_ALL_CONDITIONS_PATTERN, ExecutionCondition, Constant Field Values
      • EXTENSIONS_AUTODETECTION_ENABLED_PROPERTY_NAME

        public static final java.lang.String EXTENSIONS_AUTODETECTION_ENABLED_PROPERTY_NAME
        Property name used to enable auto-detection and registration of extensions via Java's ServiceLoader mechanism: "junit.jupiter.extensions.autodetection.enabled"

        The default behavior is not to perform auto-detection.

        See Also:
        Constant Field Values
      • DEFAULT_TEST_INSTANCE_LIFECYCLE_PROPERTY_NAME

        public static final java.lang.String DEFAULT_TEST_INSTANCE_LIFECYCLE_PROPERTY_NAME
        Property name used to set the default test instance lifecycle mode: "junit.jupiter.testinstance.lifecycle.default"

        Supported Values

        Supported values include names of enum constants defined in TestInstance.Lifecycle, ignoring case.

        If not specified, the default is "per_method" which corresponds to @TestInstance(Lifecycle.PER_METHOD).

        See Also:
        TestInstance, Constant Field Values