Package org.junit.jupiter.params.provider
ArgumentsProvider
implementations and their corresponding
ArgumentsSource
annotations.-
Interface Summary Interface Description Arguments Argumentsis an abstraction that provides access to an array of objects to be used for invoking a@ParameterizedTestmethod.ArgumentsProvider AnArgumentsProvideris responsible for providing a stream of arguments to be passed to a@ParameterizedClassor@ParameterizedTest.CsvFileArgumentsProvider.InputStreamProvider CsvFileArgumentsProvider.Source EnumSource.Mode.Validator -
Class Summary Class Description AnnotationBasedArgumentsProvider<A extends java.lang.annotation.Annotation> AnnotationBasedArgumentsProvideris an abstract base class forArgumentsProviderimplementations that also need to consume an annotation in order to provide the arguments.Arguments.ArgumentSet ArgumentsUtils Collection of utilities for working withArguments.CsvArgumentsProvider CsvFileArgumentsProvider CsvFileArgumentsProvider.CsvParserIterator CsvFileArgumentsProvider.DefaultInputStreamProvider CsvParserFactory EmptyArgumentsProvider EnumArgumentsProvider FieldArgumentsProvider MethodArgumentsProvider NullArgumentsProvider ValueArgumentsProvider -
Enum Summary Enum Description EnumSource.Mode Enumeration of modes for selecting enum constants by name.NullEnum Dummy enum class used as default value for optional attributes of annotations. -
Exception Summary Exception Description CsvParsingException Thrown if an error is encountered while parsing CSV input. -
Annotation Types Summary Annotation Type Description ArgumentsSource @ArgumentsSourceis a repeatable annotation that is used to register arguments providers for the annotated class or method.ArgumentsSources @ArgumentsSourcesis a simple container for one or moreArgumentsSourceannotations.CsvFileSource @CsvFileSourceis a repeatableArgumentsSourcewhich is used to load comma-separated value (CSV) files from one or more classpathCsvFileSource.resources()orCsvFileSource.files().CsvFileSources @CsvFileSourcesis a simple container for one or moreCsvFileSourceannotations.CsvSource @CsvSourceis a repeatableArgumentsSourcewhich reads comma-separated values (CSV) from one or more CSV records supplied via theCsvSource.value()attribute orCsvSource.textBlock()attribute.CsvSources @CsvSourcesis a simple container for one or moreCsvSourceannotations.EmptySource @EmptySourceis anArgumentsSourcewhich provides a single empty argument to the annotated@ParameterizedClassor@ParameterizedTest.EnumSource EnumSources @EnumSourcesis a simple container for one or moreEnumSourceannotations.FieldSource @FieldSourceis a repeatableArgumentsSourcewhich 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.FieldSources @FieldSourcesis a simple container for one or moreFieldSourceannotations.MethodSource @MethodSourceis a repeatableArgumentsSourcewhich 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.MethodSources @MethodSourcesis a simple container for one or moreMethodSourceannotations.NullAndEmptySource @NullAndEmptySourceis a composed annotation that combines the functionality of@NullSourceand@EmptySource.NullSource @NullSourceis anArgumentsSourcewhich provides a singlenullargument to the annotated@ParameterizedClassor@ParameterizedTest.ValueSource @ValueSourceis a repeatableArgumentsSourcewhich provides access to an array of literal values.ValueSources @ValueSourcesis a simple container for one or moreValueSourceannotations.