Module org.junit.jupiter.params
Package org.junit.jupiter.params.provider
package org.junit.jupiter.params.provider
ArgumentsProvider
implementations and their corresponding
ArgumentsSource
annotations.-
ClassDescription
Argumentsis an abstraction that provides access to an array of objects to be used for invoking a@ParameterizedTestmethod.AnArgumentsProvideris responsible for providing a stream of arguments to be passed to a@ParameterizedTestmethod.@ArgumentsSourceis a repeatable annotation that is used to register argument providers for the annotated test method.@ArgumentsSourcesis a simple container for one or moreArgumentsSourceannotations.@CsvFileSourceis anArgumentsSourcewhich is used to load comma-separated value (CSV) files from one or more classpathCsvFileSource.resources()orCsvFileSource.files().Thrown if an error is encountered while parsing CSV input.@CsvSourceis anArgumentsSourcewhich reads comma-separated values (CSV) from one or more CSV records supplied via theCsvSource.value()attribute orCsvSource.textBlock()attribute.@EmptySourceis anArgumentsSourcewhich provides a single empty argument to the annotated@ParameterizedTestmethod.Enumeration of modes for selecting enum constants by name.@MethodSourceis anArgumentsSourcewhich 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.@NullAndEmptySourceis a composed annotation that combines the functionality of@NullSourceand@EmptySource.Dummy enum class used as default value for optional attributes of annotations.@NullSourceis anArgumentsSourcewhich provides a singlenullargument to the annotated@ParameterizedTestmethod.@ValueSourceis anArgumentsSourcewhich provides access to an array of literal values.