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 java.util.stream.Stream<? extends Arguments>
provideArguments(ExtensionContext context)
-
-
-
Method Detail
-
provideArguments
java.util.stream.Stream<? extends Arguments> provideArguments(ExtensionContext context) throws java.lang.Exception
- Parameters:
context
- the current extension context; nevernull
- Returns:
- a stream of arguments; never
null
- Throws:
java.lang.Exception
-
-