use of org.teiid.query.processor.proc.Program in project teiid by teiid.
the class TestProcedurePlanner method testLoopInstructionTransaction.
@Test
public void testLoopInstructionTransaction() throws Exception {
// create a dummy instruction that may need a transaction to create the loop
LoopInstruction loop = new LoopInstruction(new Program(false) {
@Override
public Boolean requiresTransaction(boolean transactionalReads) {
return null;
}
}, "x", new RelationalPlan(new RelationalNode(1) {
@Override
protected TupleBatch nextBatchDirect() throws BlockedException, TeiidComponentException, TeiidProcessingException {
return null;
}
@Override
public Object clone() {
return null;
}
}), "y");
assertNull(loop.requiresTransaction(true));
}
Aggregations