Package-level declarations

ArgsSource and co. as well as PredefinedArgsProviders.

Types

Link copied to clipboard
class AnnotationData(val argsRangeOptions: ArgsRangeOptions, val extensionData: Map<String, Any> = emptyMap())

Data which is typically defined via an Annotation and is used as specific configuration for the test method/class.

Link copied to clipboard

Responsible to deduce AnnotationData based on a given test Method and the args source method name.

Link copied to clipboard

Responsible to generate values for a given ArgsGenerator and to transform them to Arguments.

Link copied to clipboard
class ArgsProvider : ArgumentsProvider

The org.junit.jupiter.params.provider.ArgumentsProvider for ArgsSource.

Link copied to clipboard
class ArgsRange(val offset: Int, val take: Int)

Represents a range which an ArgsGenerator should generate.

Link copied to clipboard

Responsible to decide what range of arguments should be generated for a given ArgsGenerator.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
@ArgumentsSource(value = ArgsProvider::class)
annotation class ArgsSource(val methodName: String)

Annotation which specifies a method which returns either an ArgsGenerator or Arguments (or raw values) which are used in a ParameterizedTest.

Link copied to clipboard
annotation class ArgsSourceLike

Marker annotation for annotations which act as ArgsSource, i.e. provide a methodName: String property which is used to retrieve ArgsGenerator or Arguments (or raw values).

Link copied to clipboard
annotation class ArgsSourceOptions(val profile: String = "", val maxArgs: Int = -1, val requestedMinArgs: Int = -1)

Additional options to steer the ArgsRangeDecider which is responsible to define what range from an ArgsGenerator is used in a ParameterizedTest.

Link copied to clipboard
abstract class BaseAnnotationDataDeducer<A : Annotation>(annotationClass: KClass<A>) : AnnotationDataDeducer

Deduces AnnotationData based on a given annotation A where the annotation is searched on the class and the method.

Link copied to clipboard

Responsible to combine multiple ArgsGenerator in a generic way.

Link copied to clipboard
Link copied to clipboard

Provides predefined providers around Boolean based on the default arb and ordered.

Link copied to clipboard

Provides predefined providers around bounds which are based on the default arb and ordered.

Link copied to clipboard

Provides predefined providers around Char based on the default arb and ordered.

Link copied to clipboard

Provides predefined providers around Int, Long and other Number based on the default arb and ordered.

Link copied to clipboard

Allows to define that a certain ArgsGenerator shall be combined as last generator.

Functions

Link copied to clipboard
Link copied to clipboard

Merges this AnnotationData with the given other where the other takes precedence for properties which are not merged.