@Target(value={ANNOTATION_TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @API(value=Experimental) @ArgumentsSource(value=org.junit.jupiter.params.provider.EnumArgumentsProvider.class) public @interface EnumSource
@EnumSource
is a special ArgumentsSource
which provides
access to the possible constants of specified Enum.
The enum constants are then provided as arguments to @ParameterizedTest
methods using an @EnumArgumentsProvider
.
The set of enum constants can be restricted by listing the desired values
via the names()
attribute.
ArgumentsSource
,
EnumArgumentsProvider
,
ParameterizedTest