All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wesleyhome.test.jupiter.annotations.ParametersSource.kt Maven / Gradle / Ivy

Go to download

Library to help generate test parameter permutations for parameterized tests in JUnit. This version is an initial attempt to convert to building with Gradle.

There is a newer version: 3.0.0
Show newest version
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