@Target(value={ANNOTATION_TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @API(status=EXPERIMENTAL, since="5.4") @ArgumentsSource(value=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.
ArgumentsSource
,
ParameterizedTest
,
EmptySource
,
NullAndEmptySource
Copyright © 2020. All rights reserved.