@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 and Description |
---|---|
Stream<? extends Arguments> |
provideArguments(ExtensionContext context)
|
Stream<? extends Arguments> provideArguments(ExtensionContext context) throws Exception
context
- the current extension context; never null
null
Exception