Package org.drools.guvnor.client.qa.testscenarios

Examples of org.drools.guvnor.client.qa.testscenarios.ScenarioHelper


    l.add(ex2);

    VerifyFact vf3 = new VerifyFact();
    l.add(vf3);

    ScenarioHelper hlp = new ScenarioHelper();

    List fx = hlp.lumpyMap(l);
    assertEquals(7, fx.size());

    Map first  = (Map) fx.get(0);
    assertEquals(2, first.size());
    List fdl = (List) first.get("Q");
View Full Code Here


    l.add(new FactData("X", "d", new ArrayList(), true));
    l.add(new FactData("X", "c", new ArrayList(), true));
    l.add(new FactData("Q", "a", new ArrayList(), true));
    l.add(new FactData("Q", "b", new ArrayList(), true));

    ScenarioHelper hlp = new ScenarioHelper();
    Map m = hlp.lumpyMapGlobals(l);
    assertEquals(2, m.size());
    List fd = (List) m.get("X");
    assertEquals(2, fd.size());
    assertEquals("d", ((FactData)fd.get(0)).name);
    assertEquals("c", ((FactData)fd.get(1)).name);
View Full Code Here

    List<Fixture> fl = new ArrayList<Fixture>();
    fl.add(new FactData());
    fl.add(new ExecutionTrace());
    fl.add(new ExecutionTrace());

    ScenarioHelper hlp = new ScenarioHelper();
    List r = hlp.lumpyMap(fl);
    assertEquals(4, r.size());
    assertTrue(r.get(0) instanceof Map);
    assertTrue(r.get(1) instanceof ExecutionTrace);
    assertTrue(r.get(2) instanceof Map);
    assertTrue(r.get(3) instanceof ExecutionTrace);
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.qa.testscenarios.ScenarioHelper

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.