Uses of Annotation Interface
org.junit.jupiter.api.extension.ExtendWith
Package
Description
Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.
Support for migrating from JUnit 4 to JUnit Jupiter.
JUnit Jupiter extension for parameterized tests.
-
Uses of ExtendWith in org.junit.jupiter.api.condition
Modifier and TypeClassDescriptioninterface
@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()
.interface
@DisabledIf
is used to signal that the annotated test class or test method is disabled only 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.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 enabled only 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. -
Uses of ExtendWith in org.junit.jupiter.migrationsupport
Modifier and TypeClassDescriptioninterface
EnableJUnit4MigrationSupport
is a class-level annotation that enables all JUnit 4 migration support within JUnit Jupiter. -
Uses of ExtendWith in org.junit.jupiter.params
Modifier and TypeClassDescriptioninterface
@ParameterizedTest
is used to signal that the annotated method is a parameterized test method.