1 package junitparams.custom.combined; 2 3 import java.lang.annotation.Retention; 4 import java.lang.annotation.RetentionPolicy; 5 6 import junitparams.custom.CustomParameters; 7 8 @Retention(RetentionPolicy.RUNTIME) 9 @CustomParameters(provider = CombinedParametersProvider.class) 10 public @interface CombinedParameters { 11 /** 12 * Parameter values defined as a String array. 13 * Each of the elements is a list of values that should be tested for parameters. 14 * Using this annotation will result in creating a n-fold cartesian product of parameter values effectively testing 15 * each possible combination. 16 * Values in the array must match the test method's parameters in order and type. 17 * <p> 18 * Example:<br> 19 * <code>@CombinedParameters({"han,chewie","33,204"})<br> 20 * public void shouldTestAllNameAgeCombinations(String name, Integer age) 21 * </code> 22 */ value()23 String[] value() default {}; 24 } 25