Annotation Interface NullSource


@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @Documented @API(status=STABLE, since="5.7") @ArgumentsSource(org.junit.jupiter.params.provider.NullArgumentsProvider.class) public @interface NullSource
@NullSource is an ArgumentsSource which provides a single null argument to the annotated @ParameterizedTest method.

Note that @NullSource cannot be used for an argument that has a primitive type, unless the argument is converted to a corresponding wrapper type with an ArgumentConverter.

Since:
5.4
See Also:
ArgumentsSource, ParameterizedTest, EmptySource, NullAndEmptySource