Uses of Annotation Interface
org.junit.jupiter.api.extension.ExtendWith
Package
Description
Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.
-
Uses of ExtendWith in org.junit.jupiter.api.condition
Modifier and TypeClassDescription@interface
@DisabledForJreRange
is used to signal that the annotated test class or test method is disabled for a specific range of Java Runtime Environment (JRE) versions fromDisabledForJreRange.min()
toDisabledForJreRange.max()
.@interface
@DisabledIf
is used to signal that the annotated test class or test method is disabled if the provided condition evaluates totrue
.@interface
@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.@interface
@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.@interface
@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.@interface
@DisabledOnOs
is 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@interface
@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()
.@interface
@EnabledIf
is used to signal that the annotated test class or test method is only enabled if the provided condition evaluates totrue
.@interface
@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.@interface
@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.@interface
@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.@interface
@EnabledOnOs
is 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.