junitparams.custom.combined
Annotation Type CombinedParameters


@Retention(value=RUNTIME)
public @interface CombinedParameters


Optional Element Summary
 String[] value
          Parameter values defined as a String array.
 

value

public abstract String[] value
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.

Example:
@CombinedParameters({"han,chewie","33,204"})
public void shouldTestAllNameAgeCombinations(String name, Integer age)

Default:
{}


Copyright © 2017 Pragmatists. All rights reserved.