
com.wesleyhome.test.jupiter.annotations.ParametersSource.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit-jupiter-params-generated Show documentation
Show all versions of junit-jupiter-params-generated Show documentation
Library to help generate test parameter permutations for parameterized tests in JUnit.
This version is an initial attempt to convert to building with Gradle.
package com.wesleyhome.test.jupiter.annotations
import com.wesleyhome.test.jupiter.provider.ParametersSourceArgumentsProvider
import org.junit.jupiter.params.provider.ArgumentsSource
/**
* `@ParametersSource` is an [ArgumentsSource] which provides access
* which this annotation is declared.
*
*
*
* By default such methods must be `static` unless the test class is
* annotated with
* [@TestInstance(Lifecycle.PER_CLASS)][org.junit.jupiter.api.TestInstance].
*
*
*
* The values returned by such methods will be provided as arguments to the
* annotated `@ParameterizedTest` method.
*
* @see ArgumentsSource
*
* @see org.junit.jupiter.params.ParameterizedTest
*
* @since 5.0
*/
@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
@ArgumentsSource(
ParametersSourceArgumentsProvider::class
)
annotation class ParametersSource
© 2015 - 2025 Weber Informatics LLC | Privacy Policy