Annotation Interface GameTest


@Retention(RUNTIME) @Target(METHOD) public @interface GameTest
Marks a static test method with signature void testName(GameTestHelper helper). A method annotated with MethodSource may declare supplied parameters after GameTestHelper.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Batch name; tests sharing a batch run together with BeforeBatch / AfterBatch.
    boolean
    If false, failure of this test does not fail the overall run (e.g.
    int
    Structure rotation: 0 = none, 1 = 90° clockwise, 2 = 180°, 3 = 270° clockwise (Y axis), matching Minecraft structure placement conventions.
    Structure template name (resolved relative to holder namespace / prefix).
    int
    Number of full server ticks the test may observe before timing out after the final END phase.
  • Element Details

    • template

      String template
      Structure template name (resolved relative to holder namespace / prefix).
      Default:
      ""
    • timeoutTicks

      int timeoutTicks
      Number of full server ticks the test may observe before timing out after the final END phase.
      Default:
      100
    • batch

      String batch
      Batch name; tests sharing a batch run together with BeforeBatch / AfterBatch.
      Default:
      ""
    • required

      boolean required
      If false, failure of this test does not fail the overall run (e.g. optional coverage).
      Default:
      true
    • rotation

      int rotation
      Structure rotation: 0 = none, 1 = 90° clockwise, 2 = 180°, 3 = 270° clockwise (Y axis), matching Minecraft structure placement conventions.
      Default:
      0