ArgsSource

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

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

Since

2.0.0

Properties

Link copied to clipboard

The name of the method which returns an ArgsGenerator or Arguments (or raw values).

Functions

Link copied to clipboard
inline fun <T : Any> Annotation.getPropertyValue(propertyName: String): T
fun <T : Any> Annotation.getPropertyValue(propertyName: String, type: KClass<T>): T

!! No backward compatibility guarantees !! Reuse at your own risk