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 DisabledForJreRange @DisabledForJreRangeis used to signal that the annotated test class or test method is only disabled for a specific range of Java Runtime Environment (JRE) versions fromDisabledForJreRange.min()toDisabledForJreRange.max().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.DisabledIfEnvironmentVariables @DisabledIfEnvironmentVariablesis a container for one or more@DisabledIfEnvironmentVariabledeclarations.DisabledIfSystemProperties @DisabledIfSystemPropertiesis a container for one or more@DisabledIfSystemPropertydeclarations.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.EnabledForJreRange @EnabledForJreRangeis used to signal that the annotated test class or test method is only enabled for a specific range of Java Runtime Environment (JRE) versions fromEnabledForJreRange.min()toEnabledForJreRange.max().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.EnabledIfEnvironmentVariables @EnabledIfEnvironmentVariablesis a container for one or more@EnabledIfEnvironmentVariabledeclarations.EnabledIfSystemProperties @EnabledIfSystemPropertiesis a container for one or more@EnabledIfSystemPropertydeclarations.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.