Package org.springframework.webflow.test

Examples of org.springframework.webflow.test.MockFlowExecutionContext


    MockFlowSession parentSession = new MockFlowSession(parent);
    parentSession.setState(subflowState);

    session.setParent(parentSession);
    MockRequestControlContext context = new MockRequestControlContext(new MockFlowExecutionContext(session));
    state.enter(context);

    assertFalse("Active", context.getFlowExecutionContext().isActive());
  }
View Full Code Here


    super.setUp();
    this.root = new MockMyfacesResponseStateManager();
    this.flow = new FlowResponseStateManager(this.root);
    this.manager = new MyFacesFlowResponseStateManager(this.flow);
    this.requestContext = new MockRequestContext();
    MockFlowExecutionContext executionContext = requestContext.getMockFlowExecutionContext();
    MockFlowSession session = executionContext.getMockActiveSession();
    ViewFactory viewFactory = EasyMock.createNiceMock(ViewFactory.class);
    session.setState(new ViewState(session.getDefinitionInternal(), "view", viewFactory));
    executionContext.setKey(new MockFlowExecutionKey("x"));
    RequestContextHolder.setRequestContext(requestContext);
  }
View Full Code Here

    MockFlowSession parentSession = new MockFlowSession(parent);
    parentSession.setState(subflowState);

    session.setParent(parentSession);
    MockRequestControlContext context = new MockRequestControlContext(new MockFlowExecutionContext(session));
    state.enter(context);

    assertFalse("Active", context.getFlowExecutionContext().isActive());
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.test.MockFlowExecutionContext

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.