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 @DisabledIf
is used to determine whether the annotated test class or test method is disabled by evaluating a script.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.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.EnabledIf @EnabledIf
is used to determine whether the annotated test class or test method is enabled by evaluating a script.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.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.