Package org.springframework.webflow.engine.model

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


      return new PersistenceContextModel();
    }
  }

  private VarModel parseVar(Element element) {
    return new VarModel(element.getAttribute("name"), element.getAttribute("class"));
  }
View Full Code Here


    assertEquals(1, rule.getAttributes().size());
    assertTrue(rule.getAttributes().contains("ROLE_USER"));
  }

  public void testFlowVariable() {
    model.setVars(singleList(new VarModel("flow-foo", "org.springframework.webflow.TestBean")));
    model.setStates(singleList(new EndStateModel("end")));
    Flow flow = getFlow(model);
    assertEquals("flow-foo", flow.getVariable("flow-foo").getName());
  }
View Full Code Here

    assertEquals("flow-foo", flow.getVariable("flow-foo").getName());
  }

  public void testViewStateVariable() {
    ViewStateModel view = new ViewStateModel("view");
    view.setVars(singleList(new VarModel("foo", "org.springframework.webflow.TestBean")));
    model.setStates(singleList(view));
    Flow flow = getFlow(model);
    assertNotNull(((ViewState) flow.getStateInstance("view")).getVariable("foo"));
  }
View Full Code Here

    assertEquals(1, rule.getAttributes().size());
    assertTrue(rule.getAttributes().contains("ROLE_USER"));
  }

  public void testFlowVariable() {
    model.setVars(asList(VarModel.class, new VarModel("flow-foo", "org.springframework.webflow.TestBean")));
    model.setStates(asList(AbstractStateModel.class, new EndStateModel("end")));
    Flow flow = getFlow(model);
    assertEquals("flow-foo", flow.getVariable("flow-foo").getName());
  }
View Full Code Here

    assertEquals("flow-foo", flow.getVariable("flow-foo").getName());
  }

  public void testViewStateVariable() {
    ViewStateModel view = new ViewStateModel("view");
    view.setVars(asList(VarModel.class, new VarModel("foo", "org.springframework.webflow.TestBean")));
    model.setStates(asList(AbstractStateModel.class, view));
    Flow flow = getFlow(model);
    assertNotNull(((ViewState) flow.getStateInstance("view")).getVariable("foo"));
  }
View Full Code Here

      return new PersistenceContextModel();
    }
  }

  private VarModel parseVar(Element element) {
    return new VarModel(element.getAttribute("name"), element.getAttribute("class"));
  }
View Full Code Here

TOP

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

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.