批注接口 TestHolder


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface TestHolder
Annotation used by AbstractTest in order to collect information about a test.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    This usually contains instructions on how to use the test.
    boolean
    返回 if this test is enabled by default。
    Returns the groups the test is in.
    net.neoforged.api.distmarker.Dist[]
    返回 the sides this test should be registered on。
    返回 the human-readable title of the test。
    返回 the test's ID。
  • 元素详细资料

    • value

      String value
      返回 the test's ID。
      返回:
      the test's ID
      默认值:
      "compute"
    • groups

      String[] groups
      Returns the groups the test is in.
      Note: if empty, it defaults to ungrouped.
      返回:
      the groups the test is in
      另请参阅:
      默认值:
      {}
    • title

      String title
      返回 the human-readable title of the test。
      返回:
      the human-readable title of the test
      默认值:
      ""
    • description

      String[] description
      This usually contains instructions on how to use the test. 返回 the human-readable description of the test。
      默认值:
      {}
    • enabledByDefault

      boolean enabledByDefault
      返回 if this test is enabled by default。
      返回:
      if this test is enabled by default
      默认值:
      false
    • side

      net.neoforged.api.distmarker.Dist[] side
      返回 the sides this test should be registered on。
      返回:
      the sides this test should be registered on
      默认值:
      {CLIENT, DEDICATED_SERVER}