Examples of EndState


Examples of org.springframework.webflow.engine.EndState

    MockFlowBuilderContext childFlowContext = new MockFlowBuilderContext("managed-child-flow");
    FlowAssembler childFlowAssembler = new FlowAssembler(childFlowBuilder, childFlowContext);
    Flow childFlow = childFlowAssembler.assembleFlow();

    Flow notManaged = new Flow("notmanaged-child-flow");
    new EndState(notManaged, "finish");

    context.registerSubflow(childFlow);
    context.registerSubflow(notManaged);

    Action incrementCountAction = incrementCountAction();
View Full Code Here

Examples of org.springframework.webflow.engine.EndState

    TestBean bean = new TestBean("Keith Donald");
    hibernateTemplate.save(bean);
    assertEquals("Table should still only have one row", 1, jdbcTemplate.queryForInt("select count(*) from T_BEAN"));

    EndState endState = new EndState(flowSession.getDefinitionInternal(), "success");
    endState.getAttributes().put("commit", true);
    flowSession.setState(endState);

    hibernateListener.sessionEnding(context, flowSession, "success", null);
    hibernateListener.sessionEnded(context, flowSession, "success", null);
    assertEquals("Table should only have two rows", 2, jdbcTemplate.queryForInt("select count(*) from T_BEAN"));
View Full Code Here

Examples of org.springframework.webflow.engine.EndState

    TestBean bean2 = new TestBean("Keith Donald");
    hibernateTemplate.save(bean2);
    assertEquals("Table should still only have one row", 1, jdbcTemplate.queryForInt("select count(*) from T_BEAN"));
    assertSessionBound();

    EndState endState = new EndState(flowSession.getDefinitionInternal(), "success");
    endState.getAttributes().put("commit", true);
    flowSession.setState(endState);

    hibernateListener.sessionEnding(context, flowSession, "success", null);
    hibernateListener.sessionEnded(context, flowSession, "success", null);
    assertEquals("Table should only have three rows", 3, jdbcTemplate.queryForInt("select count(*) from T_BEAN"));
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.