use of io.confluent.ksql.test.parser.SqlTestLoader in project ksql by confluentinc.
the class KsqlTesterTest method data.
@Parameterized.Parameters(name = "{0}")
public static Object[][] data() throws IOException {
final Path testDir = Paths.get(KsqlTesterTest.class.getResource(TEST_DIR).getFile());
final SqlTestLoader loader = new SqlTestLoader(testDir);
return loader.load().map(test -> new Object[] { "(" + test.getFile().getParent().toFile().getName() + "/" + test.getFile().toFile().getName() + ") " + test.getName(), test.getFile(), test.getStatements() }).toArray(Object[][]::new);
}
Aggregations