Annotation Type EmptySource
-
@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @Documented @API(status=EXPERIMENTAL, since="5.4") @ArgumentsSource(org.junit.jupiter.params.provider.EmptyArgumentsProvider.class) public @interface EmptySource@EmptySourceis anArgumentsSourcewhich provides a single empty argument to the annotated@ParameterizedTestmethod.Supported Parameter Types
This argument source will only provide an empty argument for the following method parameter types. Subtypes of the supported types are not supported.
StringListSetMap- primitive arrays — for example
int[],char[][], etc. - object arrays — for example
String[],Integer[][], etc.
- Since:
- 5.4
- See Also:
ArgumentsSource,ParameterizedTest,NullSource,NullAndEmptySource