Module org.junit.jupiter.params
Interface ArgumentsProvider
@API(status=STABLE, since="5.7") public interface ArgumentsProvider
An
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.
- Since:
- 5.0
- See Also:
ParameterizedTest
,ArgumentsSource
,Arguments
,AnnotationConsumer
-
Method Summary
Modifier and Type Method Description Stream<? extends Arguments>
provideArguments(ExtensionContext context)
-
Method Details
-
provideArguments
- Parameters:
context
- the current extension context; nevernull
- Returns:
- a stream of arguments; never
null
- Throws:
Exception
-