Package org.drools.ide.common.server.testscenarios

Examples of org.drools.ide.common.server.testscenarios.MockWorkingMemory


    private Map<String, Object> populatedData;
    private FactPopulator factPopulator;

    @Before
    public void setUp() throws Exception {
        workingMemory = new MockWorkingMemory();
        populatedData = new HashMap<String, Object>();
        factPopulator = new FactPopulator(workingMemory, populatedData);
    }
View Full Code Here


                populatedData,
                typeResolver,
                Thread.currentThread().getContextClassLoader(),
                fact);

        MockWorkingMemory workingMemory = new MockWorkingMemory();
        newFactPopulator.populate(workingMemory, new HashMap<String, FactHandle>());

        assertTrue(populatedData.containsKey("c1"));
        assertNotNull(populatedData.get("c1"));
        assertEquals(populatedData.get("c1"),
View Full Code Here

    private Map<String, Object> populatedData;
    private FactPopulator factPopulator;

    @Before
    public void setUp() throws Exception {
        workingMemory = new MockWorkingMemory();
        populatedData = new HashMap<String, Object>();
        factPopulator = new FactPopulator(workingMemory, populatedData);
    }
View Full Code Here

        TypeResolver resolver = new ClassTypeResolver(new HashSet<String>(),
                Thread.currentThread().getContextClassLoader());
        resolver.addImport("org.drools.Cheese");

        MockWorkingMemory wm = new MockWorkingMemory();
        Map<String, Object> populatedData = new HashMap<String, Object>();
        Map<String, Object> globalData = new HashMap<String, Object>();
        GlobalFactPopulator globalFactPopulator = new GlobalFactPopulator(populatedData,
                resolver,
                Thread.currentThread().getContextClassLoader(),
View Full Code Here

    @Before
    public void setUp() throws Exception {
        typeResolver = new ClassTypeResolver(new HashSet<String>(),
                Thread.currentThread().getContextClassLoader());
        populatedData = new HashMap<String, Object>();
        workingMemory = new MockWorkingMemory();
    }
View Full Code Here

TOP

Related Classes of org.drools.ide.common.server.testscenarios.MockWorkingMemory

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.