@DataPoints public static final Integer[] input1={1,2};
@Theory
@Test
public void test1(int input1){
}
@DataPoints public static final Integer[] input2={3,4};
@Theory
@Test
public void test2(int input2 ){
}
Run Code Online (Sandbox Code Playgroud)
我希望test1运行数据集input1 - {1,2},test2运行input2 - {3,4}.但目前每个测试都使用两个数据集{1,2,3,4}运行.如何将特定的@DataPoints绑定到特定的@Theorys