批注接口 ForEachTest


@Target(TYPE) @Retention(RUNTIME) public @interface ForEachTest
Apply this annotation to a class in order to add a common configuration to all child tests.
This is primarily useful for method-based tests.
Note: the common configuration goes only one level deep.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    返回 the groups in which child tests will be, by default。
    返回 a prefix to apply to the child tests。
    Class<? extends TestListener>[]
    返回 the listeners to add to all child tests。
    net.neoforged.api.distmarker.Dist[]
    返回 the sides the child tests are loaded on。
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final ForEachTest
     
  • 字段详细资料

  • 元素详细资料

    • idPrefix

      String idPrefix
      返回 a prefix to apply to the child tests。
      返回:
      a prefix to apply to the child tests
      默认值:
      ""
    • groups

      String[] groups
      返回 the groups in which child tests will be, by default。
      返回:
      the groups in which child tests will be, by default
      默认值:
      {}
    • listeners

      Class<? extends TestListener>[] listeners
      返回 the listeners to add to all child tests。
      返回:
      the listeners to add to all child tests
      默认值:
      {}
    • side

      net.neoforged.api.distmarker.Dist[] side
      返回 the sides the child tests are loaded on。
      返回:
      the sides the child tests are loaded on
      默认值:
      {}