Package org.junit.jupiter.api.condition
package org.junit.jupiter.api.condition
Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.
-
ClassDescription
@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().@DisabledIfis used to signal that the annotated test class or test method is disabled only if the provided condition evaluates totrue.@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.@DisabledIfEnvironmentVariablesis a container for one or more@DisabledIfEnvironmentVariabledeclarations.@DisabledIfSystemPropertiesis a container for one or more@DisabledIfSystemPropertydeclarations.@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.@DisabledInNativeImageis used to signal that the annotated test class or test method is only disabled when executing within a GraalVM native image.@DisabledOnJreis used to signal that the annotated test class or test method is disabled on one or more specified Java Runtime Environment (JRE) versions.@DisabledOnOsis used to signal that the annotated test class or test method is disabled on one or more specified operating systems or on one or more specified architectures@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().@EnabledIfis used to signal that the annotated test class or test method is enabled only if the provided condition evaluates totrue.@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.@EnabledIfEnvironmentVariablesis a container for one or more@EnabledIfEnvironmentVariabledeclarations.@EnabledIfSystemPropertiesis a container for one or more@EnabledIfSystemPropertydeclarations.@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.@EnabledInNativeImageis used to signal that the annotated test class or test method is only enabled when executing within a GraalVM native image.@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.@EnabledOnOsis used to signal that the annotated test class or test method is only enabled on one or more specified operating systems or one or more specified architectures.Enumeration of Java Runtime Environment (JRE) versions.Enumeration of common operating systems used for testing Java applications.