Uses of Class
org.junit.jupiter.api.extension.ExtendWith
Package | Description |
---|---|
org.junit.jupiter.api.condition |
Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.
|
org.junit.jupiter.migrationsupport |
Support for migrating from JUnit 4 to JUnit Jupiter.
|
org.junit.jupiter.params |
JUnit Jupiter extension for parameterized tests.
|
-
Uses of ExtendWith in org.junit.jupiter.api.condition
Classes in org.junit.jupiter.api.condition with annotations of type ExtendWith Modifier and Type Class Description interface
DisabledForJreRange
@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
@DisabledIf
is used to signal that the annotated test class or test method is disabled only if the provided condition evaluates totrue
.interface
DisabledIfEnvironmentVariable
@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
@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
@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
@DisabledOnOs
is used to signal that the annotated test class or test method is disabled on one or more specified operating systems.interface
EnabledForJreRange
@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
@EnabledIf
is used to signal that the annotated test class or test method is enabled only if the provided condition evaluates totrue
.interface
EnabledIfEnvironmentVariable
@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
@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
@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
@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
Classes in org.junit.jupiter.migrationsupport with annotations of type ExtendWith Modifier and Type Class Description interface
EnableJUnit4MigrationSupport
EnableJUnit4MigrationSupport
is a class-level annotation that enables all JUnit 4 migration support within JUnit Jupiter. -
Uses of ExtendWith in org.junit.jupiter.params
Classes in org.junit.jupiter.params with annotations of type ExtendWith Modifier and Type Class Description interface
ParameterizedTest
@ParameterizedTest
is used to signal that the annotated method is a parameterized test method.