Package org.drools.core.reteoo

Examples of org.drools.core.reteoo.EvalConditionNode


    public EvalConditionNode buildEvalNode(final int id,
                                           final LeftTupleSource tupleSource,
                                           final EvalCondition eval,
                                           final BuildContext context) {
        return new EvalConditionNode( id, tupleSource, eval, context );
    }
View Full Code Here


    @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() );

    }
View Full Code Here

TOP

Related Classes of org.drools.core.reteoo.EvalConditionNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.