Top Description Methods
org.junit.jupiter.params.provider

public @Interface NullSource

extends Annotation
Annotations
@Target:ANNOTATION_TYPE, METHOD, TYPE
@Retention:RUNTIME
@Documented
@Inherited
@API
status:STABLE
since:5.7
@ArgumentsSource:NullArgumentsProvider
@SuppressWarnings:exports
Static Imports
org.apiguardian.api.API.Status.STABLE

@NullSource is an ArgumentsSource which provides a single null argument to the annotated @ParameterizedClass or @ParameterizedTest.

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 org.junit.jupiter.params.converter.ArgumentConverter.

Inheritance

This annotation is inherited to subclasses.

Since
5.4
See Also
org.junit.jupiter.params.provider.ArgumentsSource, org.junit.jupiter.params.ParameterizedClass, org.junit.jupiter.params.ParameterizedTest, EmptySource, NullAndEmptySource

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString