Module org.junit.jupiter.params
Interface ArgumentsProvider
- All Known Implementing Classes:
AnnotationBasedArgumentsProvider
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 or a single unambiguous constructor to use parameter resolution.
- Since:
- 5.0
- See Also:
-
Method Summary
-
Method Details
-
provideArguments
- Parameters:
context
- the current extension context; nevernull
- Returns:
- a stream of arguments; never
null
- Throws:
Exception
-