Package org.drools.ide.common.server.util

Examples of org.drools.ide.common.server.util.ScenarioXMLPersistence.marshal()


    public void testToXML() {
    ScenarioXMLPersistence p = ScenarioXMLPersistence.getInstance();

    Scenario sc = new Scenario();

    String s = p.marshal(sc);
    assertNotNull(s);

    sc = getDemo();

    s = p.marshal(sc);
View Full Code Here


    String s = p.marshal(sc);
    assertNotNull(s);

    sc = getDemo();

    s = p.marshal(sc);

      assertTrue(s.indexOf("<ruleName>Life unverse and everything</ruleName>") > 0);

      Scenario sc_ = p.unmarshal(s);
      assertEquals(sc.getGlobals().size(), sc_.getGlobals().size());
View Full Code Here

  public void testToXML() {
    ScenarioXMLPersistence p = ScenarioXMLPersistence.getInstance();

    Scenario sc = new Scenario();

    String s = p.marshal(sc);
    assertNotNull(s);

    sc = getDemo();

    s = p.marshal(sc);
View Full Code Here

    String s = p.marshal(sc);
    assertNotNull(s);

    sc = getDemo();

    s = p.marshal(sc);

      assertTrue(s.indexOf("<ruleName>Life unverse and everything</ruleName>") > 0);

      Scenario sc_ = p.unmarshal(s);
      assertEquals(sc.globals.size(), sc_.globals.size());
View Full Code Here

    public void testToXML() {
        ScenarioXMLPersistence p = ScenarioXMLPersistence.getInstance();

        Scenario sc = new Scenario();

        String s = p.marshal(sc);
        assertNotNull(s);

        sc = getDemo();

        s = p.marshal(sc);
View Full Code Here

        String s = p.marshal(sc);
        assertNotNull(s);

        sc = getDemo();

        s = p.marshal(sc);

        assertTrue(s.indexOf("<ruleName>Life unverse and everything</ruleName>") > 0);

        Scenario sc_ = p.unmarshal(s);
        assertEquals(sc.getGlobals().size(), sc_.getGlobals().size());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.