Annotation Interface Conditional


@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface Conditional
Indicates that the step should be performed only if the specified condition is met. A condition is a state that can be determined programmatically before the step is performed.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Predicate<Object>>
    Defines the class of condition that will be used for step matching.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines the value to match the condition against.
  • Element Details

    • condition

      Class<? extends Predicate<Object>> condition
      Defines the class of condition that will be used for step matching.
      Returns:
      the Predicate implementation class.
    • value

      String value
      Defines the value to match the condition against.
      Returns:
      the String value, empty by default.
      Default:
      ""