@Target(value={ANNOTATION_TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @API(value=Experimental) @ArgumentsSource(value=org.junit.jupiter.params.provider.ValueArgumentsProvider.class) public @interface ValueSource
@ValueSource
is a special ArgumentsSource
which provides
access to an array of literal values of certain primitive types.
Supported primitive types include strings()
, ints()
,
longs()
, and doubles()
.
These values are then provided as arguments to @ParameterizedTest
methods using a @ValueArgumentsProvider
.
ArgumentsSource
,
ValueArgumentsProvider
,
ParameterizedTest
public abstract String[] strings