use of io.shardingjdbc.core.integrate.jaxb.SQLAssert in project sharding-jdbc by shardingjdbc.
the class SQLAssertJAXBHelper method dataParameters.
private static Collection<Object[]> dataParameters(final File file) {
SQLAsserts asserts = loadSQLAsserts(file);
List<Object[]> result = new ArrayList<>();
for (int i = 0; i < asserts.getSqlAsserts().size(); i++) {
SQLAssert assertObj = asserts.getSqlAsserts().get(i);
for (DatabaseType each : getDatabaseTypes(SQLCasesLoader.getInstance().getDatabaseTypes(assertObj.getId()))) {
result.add(getDataParameter(assertObj, each));
}
}
return result;
}
Aggregations