@Retention(value=RUNTIME) public @interface Parameters
public abstract String[] value
@Parameters({
"1, joe, 26.4, true",
"2, angie, 37.2, false"}
public abstract Class<?> source
provide
returning Object[]
. All such methods are used, so you can
group your examples. The resulting array should contain parameter sets in
its elements. Each parameter set must be another Object[] array, which
contains parameter values in its elements.
Example: @Parameters(source = PeopleProvider.class)
public abstract String method
@Parameters(method = "examplaryPeople")
You can use multiple methods to provide parameters - use comma to do it:
Example: @Parameters(method = "womenParams, menParams")
Copyright © 2014 Pragmatists. All rights reserved.