Annotation Interface MethodSource


@Retention(RUNTIME) @Target(METHOD) public @interface MethodSource
Expands one GameTest method into independently reported invocations supplied by a static method in the same holder.

The source must be a public static no-argument method returning a stream, iterable, iterator, or array. Every element must be a GameTestArguments row. Sources execute during discovery and cases retain encounter order. A source may contain at most 256 rows; named case keys may contain at most 128 characters. An empty value uses the test method's name as the source method name.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Source method name in the same GameTestHolder; empty uses the test method name.
  • Element Details

    • value

      String value
      Source method name in the same GameTestHolder; empty uses the test method name.
      Default:
      ""