Annotation Type EnabledForMavenVersion
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@ExtendWith(EnabledForMavenVersionCondition.class)
@API(status=EXPERIMENTAL,
since="0.1.0")
public @interface EnabledForMavenVersion
@EnabledForMavenVersion
is used to signal that the annotated test class or test method is
EnabledForMavenVersion on one or more specified Maven version which the tests are being run with.
When applied at the class level, all test methods within that class will be disabled on the same specified Maven version.
If a test method is disabled via this annotation, that does not prevent
the test class from being instantiated. Rather, it prevents the execution of the test method and method-level
lifecycle callbacks such as @BeforeEach
methods, @AfterEach
methods, and corresponding extension
APIs.
This annotation may be used as a meta-annotation in order to create a custom composed annotation that inherits the semantics of this annotation.
- Since:
- 0.1
- Author:
- Karl Heinz Marbaise
- See Also:
-
MavenVersion
EnabledOnOs
EnabledOnJre
DisabledOnJre
EnabledIfEnvironmentVariable
DisabledIfEnvironmentVariable
EnabledIfSystemProperty
DisabledIfSystemProperty
Disabled
-
Required Element Summary
-
Element Details
-
value
MavenVersion[] value
-