@Target(value={ANNOTATION_TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @API(status=EXPERIMENTAL, since="5.0") @ArgumentsSource(value=org.junit.jupiter.params.provider.MethodArgumentsProvider.class) public @interface MethodSource
@MethodSource
is an ArgumentsSource
which provides access
to values returned by methods of the class in
which this annotation is declared.
By default such methods must be static
unless the test class is
annotated with
@TestInstance(Lifecycle.PER_CLASS)
.
The values returned by such methods will be provided as arguments to the
annotated @ParameterizedTest
method.
ArgumentsSource
,
ParameterizedTest
public abstract String[] value