Module org.junit.jupiter.params
Annotation Interface EmptySource
@Target({ANNOTATION_TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@API(status=STABLE,
since="5.7")
@ArgumentsSource(org.junit.jupiter.params.provider.EmptyArgumentsProvider.class)
public @interface EmptySource
@EmptySource
is an ArgumentsSource
which provides a single
empty argument to the annotated @ParameterizedTest
method.
Supported Parameter Types
This argument source will only provide an empty argument for the following method parameter types.
String
Collection
and concrete subtypes with a public no-arg constructorList
Set
SortedSet
NavigableSet
Map
and concrete subtypes with a public no-arg constructorSortedMap
NavigableMap
- primitive arrays — for example
int[]
,char[][]
, etc. - object arrays — for example
String[]
,Integer[][]
, etc.
- Since:
- 5.4
- See Also: