org.junit.contrib.theories.suppliers
Annotation Type TestedOn
@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface TestedOn
Marking a Theory method int parameter with this annotation causes it to be supplied with values
from the integer array given when run as a theory by the Theories runner. For example, the below method
would be called three times by the Theories runner, once with each of the int parameters specified.
@Theory
public void shouldPassForSomeInts(@TestedOn(ints={1, 2, 3}) int param) {
...
}
|
Required Element Summary |
int[] |
ints
|
ints
public abstract int[] ints
Copyright © 2014. All Rights Reserved.