Module org.junit.jupiter.api
Package org.junit.jupiter.api.condition
package org.junit.jupiter.api.condition
Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.
-
Annotation InterfaceDescription
@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()
.@DisabledIf
is used to signal that the annotated test class or test method is disabled only if the provided condition evaluates totrue
.@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
is a container for one or more@DisabledIfEnvironmentVariable
declarations.@DisabledIfSystemProperties
is a container for one or more@DisabledIfSystemProperty
declarations.@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
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
is used to signal that the annotated test class or test method is disabled on one or more specified operating systems.@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()
.@EnabledIf
is used to signal that the annotated test class or test method is enabled only if the provided condition evaluates totrue
.@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
is a container for one or more@EnabledIfEnvironmentVariable
declarations.@EnabledIfSystemProperties
is a container for one or more@EnabledIfSystemProperty
declarations.@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
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
is used to signal that the annotated test class or test method is only enabled on one or more specified operating systems.