Top Description Interfaces Annotations Classes Enums
module org.junit.jupiter.params

Package org.junit.jupiter.params.provider

Annotations
@NullMarked
Imports
org.jspecify.annotations.NullMarked

ArgumentsProvider implementations and their corresponding ArgumentsSource annotations.

Interface Summary

Modifier and TypeInterface and Description
public interface
Arguments

Arguments is an abstraction that provides access to an array of objects to be used for invoking a @ParameterizedTest method.

public interface
ArgumentsProvider

An ArgumentsProvider is responsible for providing a stream of arguments to be passed to a @ParameterizedClass or @ParameterizedTest.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
ArgumentsSource

@ArgumentsSource is a repeatable annotation that is used to register arguments providers for the annotated class or method.

public @interface
ArgumentsSources

@ArgumentsSources is a simple container for one or more ArgumentsSource annotations.

public @interface
CsvFileSource

@CsvFileSource is a repeatable ArgumentsSource which is used to load comma-separated value (CSV) files from one or more classpath resources or files.

public @interface
CsvFileSources

@CsvFileSources is a simple container for one or more CsvFileSource annotations.

public @interface
CsvSource

@CsvSource is a repeatable ArgumentsSource which reads comma-separated values (CSV) from one or more CSV records supplied via the value attribute or textBlock attribute.

public @interface
CsvSources

@CsvSources is a simple container for one or more CsvSource annotations.

public @interface
EmptySource

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

public @interface
EnumSource

@EnumSource is a repeatable ArgumentsSource for constants of an Enum.

public @interface
EnumSources

@EnumSources is a simple container for one or more EnumSource annotations.

public @interface
FieldSource

@FieldSource is a repeatable ArgumentsSource 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.

public @interface
FieldSources

@FieldSources is a simple container for one or more FieldSource annotations.

public @interface
MethodSource

@MethodSource is a repeatable 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.

public @interface
MethodSources

@MethodSources is a simple container for one or more MethodSource annotations.

public @interface
NullAndEmptySource

@NullAndEmptySource is a composed annotation that combines the functionality of @NullSource and @EmptySource.

public @interface
NullSource

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

public @interface
ValueSource

@ValueSource is a repeatable ArgumentsSource which provides access to an array of literal values.

public @interface
ValueSources

@ValueSources is a simple container for one or more ValueSource annotations.

Class Summary

Modifier and TypeClass and Description
public abstract class
AnnotationBasedArgumentsProvider<A extends Annotation>

AnnotationBasedArgumentsProvider is an abstract base class for ArgumentsProvider implementations that also need to consume an annotation in order to provide the arguments.

pack-priv class
ArgumentsUtils

Collection of utilities for working with Arguments.

pack-priv class
pack-priv class
public class
CsvParsingException

Thrown if an error is encountered while parsing CSV input.

pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class

Enum Summary

Modifier and TypeEnum and Description
public enum
NullEnum

Dummy enum class used as default value for optional attributes of annotations.