Package org.junit.jupiter.api.condition
package org.junit.jupiter.api.condition
Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.
-
Enum Class Summary
-
Annotation Interfaces SummaryAnnotation InterfaceDescription
@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.@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.@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.@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.