Annotation Interface State


@Retention(RUNTIME) @Target(METHOD) @Inherited public @interface State
Used to mark methods that should be run on state change
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Whether to run the method before (SETUP) or after (TEARDOWN) the interaction
    Comment associated with the state change callback
  • Element Details

    • value

      String[] value
      Returns:
      list of state names
    • action

      Whether to run the method before (SETUP) or after (TEARDOWN) the interaction
      Default:
      SETUP
    • comment

      String comment
      Comment associated with the state change callback
      Default:
      ""