Annotation Type NullSource
-
@Target({ANNOTATION_TYPE,METHOD,TYPE}) @Retention(RUNTIME) @Documented @Inherited @API(status=STABLE, since="5.7") @ArgumentsSource(NullArgumentsProvider.class) public @interface NullSource@NullSourceis anArgumentsSourcewhich provides a singlenullargument to the annotated@ParameterizedClassor@ParameterizedTest.Note that
@NullSourcecannot be used for an argument that has a primitive type, unless the argument is converted to a corresponding wrapper type with anArgumentConverter.Inheritance
This annotation is inherited to subclasses.
- Since:
- 5.4
- See Also:
ArgumentsSource,ParameterizedClass,ParameterizedTest,EmptySource,NullAndEmptySource