Examples of registerBean()


Examples of org.springframework.webflow.test.MockFlowBuilderContext.registerBean()

    Flow flow = assembler.assembleFlow();
    context.registerSubflow(flow);
    Flow notManaged = new Flow("notmanaged");
    new EndState(notManaged, "finish");
    context.registerSubflow(notManaged);
    context.registerBean("loadTestBean", new Action() {
      public Event execute(RequestContext context) throws Exception {
        assertSessionBound();
        EntityManager em = (EntityManager) context.getFlowScope().get("persistenceContext");
        TestBean bean = (TestBean) em.getReference(TestBean.class, new Integer(0));
        assertNotNull(bean);
View Full Code Here

Examples of org.springframework.webflow.test.MockFlowBuilderContext.registerBean()

      public void handle(FlowExecutionException exception, RequestControlContext context) {
      }
    };
    FlowModelFlowBuilder builder = new FlowModelFlowBuilder(new StaticFlowModelHolder(model));
    MockFlowBuilderContext context = new MockFlowBuilderContext("foo");
    context.registerBean("exceptionHandler", handler);
    FlowAssembler assembler = new FlowAssembler(builder, context);
    Flow flow = assembler.assembleFlow();
    assertEquals(1, flow.getExceptionHandlerSet().size());
  }
View Full Code Here

Examples of sk.fiit.jim.init.Script.registerBean()

  }
 
  protected String currentLowSkill(){
    StringHolder holder = new StringHolder();
    Script script = Script.createScript("$holder.value = Plan.instance.current_high_skill.current_low_skill");
    script.registerBean("holder", holder);
    script.execute();
    return holder.value;
  }
 
  protected String currentHighSkill(){
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.