Package org.springframework.webflow.engine.model

Examples of org.springframework.webflow.engine.model.PersistenceContextModel


  private PersistenceContextModel parsePersistenceContext(Element element) {
    element = DomUtils.getChildElementByTagName(element, "persistence-context");
    if (element == null) {
      return null;
    } else {
      return new PersistenceContextModel();
    }
  }
View Full Code Here


    assertEquals("bar", flow.getAttributes().get("foo"));
    assertEquals(new Integer(1), flow.getAttributes().get("number"));
  }

  public void testPersistenceContextFlow() {
    model.setPersistenceContext(new PersistenceContextModel());
    model.setStates(singleList(new EndStateModel("end")));
    Flow flow = getFlow(model);
    assertNotNull(flow.getAttributes().get("persistenceContext"));
    assertTrue(((Boolean) flow.getAttributes().get("persistenceContext")).booleanValue());
  }
View Full Code Here

    assertEquals("bar", flow.getAttributes().get("foo"));
    assertEquals(new Integer(1), flow.getAttributes().get("number"));
  }

  public void testPersistenceContextFlow() {
    model.setPersistenceContext(new PersistenceContextModel());
    model.setStates(asList(AbstractStateModel.class, new EndStateModel("end")));
    Flow flow = getFlow(model);
    assertNotNull(flow.getAttributes().get("persistenceContext"));
    assertTrue((Boolean) flow.getAttributes().get("persistenceContext"));
  }
View Full Code Here

  private PersistenceContextModel parsePersistenceContext(Element element) {
    element = DomUtils.getChildElementByTagName(element, "persistence-context");
    if (element == null) {
      return null;
    } else {
      return new PersistenceContextModel();
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.model.PersistenceContextModel

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.