@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
,
AnnotationConsumer
Modifier and Type | Method | Description |
---|---|---|
Stream<? extends Arguments> |
provideArguments(ExtensionContext context) |
Stream<? extends Arguments> provideArguments(ExtensionContext context) throws Exception
context
- the current extension context; never null
null
Exception
Copyright © 2019. All rights reserved.