Annotation Interface RequiresModule
@Inherited
@Documented
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Repeatable(RequiresModules.class)
@ExtendWith(RequiresModuleExecutionCondition.class)
public @interface RequiresModule
Enables or disables a test based on whether the module exists. You can optionally check the version of the module
to determine if the modules version is greater than the minimum version.
- Author:
- James R. Perkins
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
minVersion
String minVersionThe minimum version of the module resource.Note that if more than one resource is defined, only the first resource is used to determine the version.
- Returns:
- the minimum version
- Default:
""
-
issueRef
String issueRefA reference for the issue tracker to be reported in the response for a disabled test.- Returns:
- the issue reference
- Default:
""
-
reason
String reasonThe reason message for disabled test.- Returns:
- the reason message
- Default:
""
-
value
String valueThe module that is required for the test to run.- Returns:
- the module name
-
slot
String slotThe slot for the module. The default ismain.- Returns:
- the slot for the module
- Default:
"main"
-