Annotation Type EmptySource
-
@Target({ANNOTATION_TYPE,METHOD,TYPE}) @Retention(RUNTIME) @Documented @Inherited @API(status=STABLE, since="5.7") @ArgumentsSource(EmptyArgumentsProvider.class) public @interface EmptySource@EmptySourceis anArgumentsSourcewhich provides a single empty argument to the annotated@ParameterizedClassor@ParameterizedTest.Supported Parameter Types
This argument source will only provide an empty argument for the following parameter types.
StringCollectionand concrete subtypes with a public no-arg constructorListSetSortedSetNavigableSetMapand concrete subtypes with a public no-arg constructorSortedMapNavigableMap- primitive arrays — for example
int[],char[][], etc. - object arrays — for example
String[],Integer[][], etc.
Inheritance
This annotation is inherited to subclasses.
- Since:
- 5.4
- See Also:
ArgumentsSource,ParameterizedClass,ParameterizedTest,NullSource,NullAndEmptySource