批注接口 TestGroup


@Target(FIELD) @Retention(RUNTIME) public @interface TestGroup
Annotate a String field with the value being the ID of a group with this annotation in order to configure the group.
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    返回 the human-readable name of the group。
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
    返回 if the tests in this group are enabled by default。
    返回 the parents of this group。
  • 元素详细资料

    • name

      String name
      返回 the human-readable name of the group。
      返回:
      the human-readable name of the group
    • enabledByDefault

      boolean enabledByDefault
      返回 if the tests in this group are enabled by default。
      返回:
      if the tests in this group are enabled by default
      默认值:
      false
    • parents

      String[] parents
      返回 the parents of this group。
      Note: group parents are also computed using id().split(".").
      返回:
      the parents of this group
      默认值:
      {}