88899091929394
public EvalConditionNode buildEvalNode(final int id, final LeftTupleSource tupleSource, final EvalCondition eval, final BuildContext context) { return new EvalConditionNode( id, tupleSource, eval, context ); }
60616263646566676869707172737475767778798081
@Test public void testAttach() throws Exception { final MockTupleSource source = new MockTupleSource(12); final EvalConditionNode node = new EvalConditionNode(18, source, new MockEvalCondition(true), buildContext); assertEquals(18, node.getId()); assertEquals(0, source.getAttached()); node.attach(buildContext); assertEquals( 1, source.getAttached() ); }