很方便的自动遍历提供测试数据:
@DataProvider(name = "test_data")
public Iterator<Object[]> dataForTestDataSql(Method method) throws SQLException {
return new ReadSqlData(method.getName().toString(), source);
}
public class ReadSqlData implements Iterator<Object[]> {
public ReadSqlData(String method, String source) throws SQLException {
}
public boolean hasNext() {
}
public Object[] next() {
}
}