Annotation Interface EnabledIfProperty


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @ExtendWith(EnabledIfPropertyCondition.class) public @interface EnabledIfProperty
@EnabledIfProperty is used to signal that the annotated test class or test method is only enabled if the value of the specified property obtained through MP Config matches the specified regular expression.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A regular expression that will be used to match against the retrieved value of the named() property.
    The name of the property to retrieve.
  • Element Details

    • named

      String named
      The name of the property to retrieve.
      Returns:
      the property name; never blank
      See Also:
      • Config.getValue(String, Class)
    • matches

      String matches
      A regular expression that will be used to match against the retrieved value of the named() property.
      Returns:
      the regular expression; never blank
      See Also: