注释类型 TestedOn
@Retention(RUNTIME) @Target(PARAMETER) public @interface TestedOn
Annotating aTheory
method int parameter with @TestedOn causes it to be supplied with values from the ints array given when run as a theory by theTheories
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) { ... }
必需元素概要
所需元素 修饰符和类型 必需的元素 说明 int[]
ints
元素详细资料
ints
int[] ints