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 Deprecated. Script-based condition APIs and their supporting implementations are deprecated with the intent to remove them in JUnit Jupiter 5.6.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 Deprecated. Script-based condition APIs and their supporting implementations are deprecated with the intent to remove them in JUnit Jupiter 5.6.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.