helpAssertIsBatchedPlan((RelationalPlan)plans.get(i), expectedBatching[i]);
}
}
private void helpTestPlanner(String[] sql, boolean[] expectedBatching, CapabilitiesFinder capFinder) throws QueryMetadataException, TeiidComponentException, TeiidProcessingException {
BatchedUpdatePlan plan = helpPlan(sql, FakeMetadataFactory.example1Cached(), capFinder, true);
List plans = plan.getUpdatePlans();
assertEquals("Number of child plans did not match expected", expectedBatching.length, plans.size()); //$NON-NLS-1$
for (int i = 0; i < expectedBatching.length; i++) {
helpAssertIsBatchedPlan((RelationalPlan)plans.get(i), expectedBatching[i]);
}
}