Module org.junit.jupiter.api
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 @DisabledForJreRange
is 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 @DisabledIfEnvironmentVariable
is 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 @DisabledIfEnvironmentVariables
is a container for one or more@DisabledIfEnvironmentVariable
declarations.DisabledIfSystemProperties @DisabledIfSystemProperties
is a container for one or more@DisabledIfSystemProperty
declarations.DisabledIfSystemProperty @DisabledIfSystemProperty
is 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 @DisabledOnJre
is used to signal that the annotated test class or test method is disabled on one or more specified Java Runtime Environment (JRE) versions.DisabledOnOs @DisabledOnOs
is used to signal that the annotated test class or test method is disabled on one or more specified operating systems.EnabledForJreRange @EnabledForJreRange
is 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 @EnabledIfEnvironmentVariable
is 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 @EnabledIfEnvironmentVariables
is a container for one or more@EnabledIfEnvironmentVariable
declarations.EnabledIfSystemProperties @EnabledIfSystemProperties
is a container for one or more@EnabledIfSystemProperty
declarations.EnabledIfSystemProperty @EnabledIfSystemProperty
is 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 @EnabledOnJre
is 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 @EnabledOnOs
is used to signal that the annotated test class or test method is only enabled on one or more specified operating systems.