Annotation Type TestedOn

public @interface TestedOn

Annotating a Theory method int parameter with @TestedOn causes it to be supplied with values from the ints 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.

 public void shouldPassForSomeInts(@TestedOn(ints={1, 2, 3}) int param) {

Required Element Summary
 int[] ints

Element Detail


public abstract int[] ints

Copyright © 2002–2021 JUnit. All rights reserved.