use of org.teiid.query.sql.lang.CollectionValueIterator in project teiid by teiid.
the class TestExpressionEvaluator method helpTestWithValueIterator.
private void helpTestWithValueIterator(ScalarSubquery expr, List<?> values, Object expected) throws BlockedException, TeiidComponentException, ExpressionEvaluationException {
final CollectionValueIterator valueIter = new CollectionValueIterator(values);
CommandContext cc = new CommandContext();
assertEquals(expected, new Evaluator(Collections.emptyMap(), null, cc) {
@Override
protected ValueIterator evaluateSubquery(SubqueryContainer container, List tuple) throws TeiidProcessingException, BlockedException, TeiidComponentException {
return valueIter;
}
}.evaluate(expr, null));
}
Aggregations