【发布时间】:2012-12-17 07:13:46
【问题描述】:
我有 3 个字符串数组数据点和 2 个整数数组数据点。
@DataPoint public static Integer[] xxx ={100,200};
@DataPoint public static Integer[] x ={-14,15};
@DataPoint public static String[] xx = new String[]{"de" ,"Y"};
@DataPoint public static String[] cityCode = new String[]{"de" ,"abc"};
@DataPoint public static String[] city = new String[]{"de" ,"dfg"};
@Theory public void xxx(String[] result ,Integer[] checkdt )
运行此测试用例时,它需要 3 个字符串数组的数据点,但我只想使用字符串数组的 2 个数据点 我怎样才能只使用 2 个数据点?
【问题讨论】:
标签: java junit data-driven