ArgumentsProvider
implementations and their corresponding
ArgumentsSource
annotations.Interface | Description |
---|---|
Arguments |
Arguments is an abstraction that provides access to an array of
objects to be used for invoking a @ParameterizedTest method. |
ArgumentsProvider |
An
ArgumentsProvider is responsible for providing a stream of arguments to be passed to a @ParameterizedTest
method. |
Enum | Description |
---|---|
EnumSource.Mode |
Enumeration of modes for selecting enum constants by name.
|
Exception | Description |
---|---|
CsvParsingException |
Thrown if an error is encountered while parsing CSV input.
|
Annotation Type | Description |
---|---|
ArgumentsSource |
@ArgumentsSource is a repeatable annotation
that is used to register argument providers
for the annotated test method. |
ArgumentsSources |
@ArgumentsSources is a simple container for one or more
ArgumentsSource annotations. |
CsvFileSource |
@CsvFileSource is an ArgumentsSource which is used to load
comma-separated value (CSV) files from one or more classpath resources . |
CsvSource |
@CsvSource is an ArgumentsSource which reads
comma-separated values (CSV) from one or more supplied
CSV lines. |
EmptySource |
@EmptySource is an ArgumentsSource which provides a single
empty argument to the annotated @ParameterizedTest method. |
EnumSource | |
MethodSource |
@MethodSource is an ArgumentsSource 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. |
NullAndEmptySource |
@NullAndEmptySource is a composed annotation that combines
the functionality of @NullSource and
@EmptySource . |
NullSource |
@NullSource is an ArgumentsSource which provides a single
null argument to the annotated @ParameterizedTest method. |
ValueSource |
@ValueSource is an ArgumentsSource which provides access to
an array of literal values. |
Copyright © 2019. All rights reserved.