Uses of Annotation Interface
org.junit.jupiter.params.provider.ArgumentsSource
Package
Description
ArgumentsProvider
implementations and their corresponding
ArgumentsSource
annotations.-
Uses of ArgumentsSource in org.junit.jupiter.params.provider
Modifier and TypeClassDescription@interface
@CsvFileSource
is a repeatableArgumentsSource
which is used to load comma-separated value (CSV) files from one or more classpathCsvFileSource.resources()
orCsvFileSource.files()
.@interface
@CsvSource
is a repeatableArgumentsSource
which reads comma-separated values (CSV) from one or more CSV records supplied via theCsvSource.value()
attribute orCsvSource.textBlock()
attribute.@interface
@EmptySource
is anArgumentsSource
which provides a single empty argument to the annotated@ParameterizedTest
method.@interface
@interface
@FieldSource
is a repeatableArgumentsSource
which provides access to values of fields of the class in which this annotation is declared or from static fields in external classes referenced by fully qualified field name.@interface
@MethodSource
is a repeatableArgumentsSource
which provides access to values returned from factory methods of the class in which this annotation is declared or from static factory methods in external classes referenced by fully qualified method name.@interface
@NullSource
is anArgumentsSource
which provides a singlenull
argument to the annotated@ParameterizedTest
method.@interface