Package org.drools.reteoo.ObjectTypeNode

Examples of org.drools.reteoo.ObjectTypeNode.ObjectTypeNodeMemory


                      asserted );
        assertEquals( cheese,
                      ((InternalFactHandle) ((Object[]) asserted.get( 0 ))[0]).getObject() );

        // check asserted object was added to memory
        final ObjectTypeNodeMemory memory = (ObjectTypeNodeMemory) workingMemory.getNodeMemory( objectTypeNode );
        assertEquals( 1,
                      memory.memory.size() );
        assertTrue( memory.memory.contains( handle1 ) );
    }
View Full Code Here


                      asserted );
        assertEquals( ((InternalFactHandle) ((Object[]) asserted.get( 0 ))[0]).getObject(),
                      person );

        // check asserted object was added to memory
        final ObjectTypeNodeMemory memory = (ObjectTypeNodeMemory) workingMemory.getNodeMemory( objectTypeNode );
        assertEquals( 1,
                      memory.memory.size() );
        assertTrue( memory.memory.contains( handle1 ) );
    }
View Full Code Here

TOP

Related Classes of org.drools.reteoo.ObjectTypeNode.ObjectTypeNodeMemory

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.