aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/junitparams/custom/combined/CombinedParameters.java
blob: 95e4a5e26377b52985cfd521fbd64d8012d2dc1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package junitparams.custom.combined;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import junitparams.custom.CustomParameters;

@Retention(RetentionPolicy.RUNTIME)
@CustomParameters(provider = CombinedParametersProvider.class)
public @interface CombinedParameters {
    /**
     * Parameter values defined as a String array.
     * Each of the elements is a list of values that should be tested for parameters.
     * Using this annotation will result in creating a n-fold cartesian product of parameter values effectively testing
     * each possible combination.
     * Values in the array must match the test method's parameters in order and type.
     * <p>
     * Example:<br>
     * <code>@CombinedParameters({"han,chewie","33,204"})<br>
     * public void shouldTestAllNameAgeCombinations(String name, Integer age)
     * </code>
     */
    String[] value() default {};
}