@API(status=EXPERIMENTAL, since="5.0") public interface ArgumentsProvider
ArgumentsProvider
is responsible for providing a stream of arguments to be passed to a @ParameterizedTest
method.
An ArgumentsProvider
can be registered via the
@ArgumentsSource
annotation.
Implementations must provide a no-args constructor.
ParameterizedTest
,
ArgumentsSource
,
Arguments
Modifier and Type | Method | Description |
---|---|---|
java.util.stream.Stream<? extends Arguments> |
provideArguments(ExtensionContext context) |
java.util.stream.Stream<? extends Arguments> provideArguments(ExtensionContext context) throws java.lang.Exception
context
- the current extension context; never null
null
java.lang.Exception