Package org.junit.jupiter.api.condition
Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.
-
Enum Summary Enum Description JRE Enumeration of Java Runtime Environment (JRE) versions.OS Enumeration of common operating systems used for testing Java applications. -
Annotation Types Summary Annotation Type Description DisabledIf @DisabledIfis used to determine whether the annotated test class or test method is disabled by evaluating a script.DisabledIfEnvironmentVariable @DisabledIfEnvironmentVariableis used to signal that the annotated test class or test method is disabled if the value of the specified environment variable matches the specified regular expression.DisabledIfSystemProperty @DisabledIfSystemPropertyis used to signal that the annotated test class or test method is disabled if the value of the specified system property matches the specified regular expression.DisabledOnJre @DisabledOnJreis used to signal that the annotated test class or test method is disabled on one or more specified Java Runtime Environment (JRE) versions.DisabledOnOs @DisabledOnOsis used to signal that the annotated test class or test method is disabled on one or more specified operating systems.EnabledIf @EnabledIfis used to determine whether the annotated test class or test method is enabled by evaluating a script.EnabledIfEnvironmentVariable @EnabledIfEnvironmentVariableis used to signal that the annotated test class or test method is only enabled if the value of the specified environment variable matches the specified regular expression.EnabledIfSystemProperty @EnabledIfSystemPropertyis used to signal that the annotated test class or test method is only enabled if the value of the specified system property matches the specified regular expression.EnabledOnJre @EnabledOnJreis used to signal that the annotated test class or test method is only enabled on one or more specified Java Runtime Environment (JRE) versions.EnabledOnOs @EnabledOnOsis used to signal that the annotated test class or test method is only enabled on one or more specified operating systems.