Interface ArgumentsProvider
-
@API(status=EXPERIMENTAL, since="5.0") public interface ArgumentsProvider
AnArgumentsProvider
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.
- Since:
- 5.0
- See Also:
ParameterizedTest
,ArgumentsSource
,Arguments
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream<? extends Arguments>
provideArguments(ExtensionContext context)
-
-
-
Method Detail
-
provideArguments
Stream<? extends Arguments> provideArguments(ExtensionContext context) throws Exception
- Parameters:
context
- the current extension context; nevernull
- Returns:
- a stream of arguments; never
null
- Throws:
Exception
-
-