Package org.springframework.webflow.execution.repository

Examples of org.springframework.webflow.execution.repository.NoSuchFlowExecutionException


    request.setPathInfo("/foo");
    request.setRequestURI("/springtravel/app/foo");
    request.setMethod("GET");
    request.addParameter("execution", "12345");
    executor.resumeExecution("12345", context);
    FlowException flowException = new NoSuchFlowExecutionException(new MockFlowExecutionKey("12345"), null);
    EasyMock.expectLastCall().andThrow(flowException);
    EasyMock.replay(new Object[] { executor });
    ModelAndView mv = controller.handleRequest(request, response);
    assertNull(mv);
    assertEquals("/springtravel/app/foo", response.getRedirectedUrl());
View Full Code Here


    request.setPathInfo("/foo");
    request.setRequestURI("/springtravel/app/foo");
    request.setMethod("GET");
    request.addParameter("execution", "12345");
    flowExecutor.resumeExecution("12345", context);
    FlowException flowException = new NoSuchFlowExecutionException(new MockFlowExecutionKey("12345"), null);
    EasyMock.expectLastCall().andThrow(flowException);
    EasyMock.replay(new Object[] { flowExecutor });
    flowHandlerAdapter.handle(request, response, flowHandler);
    assertEquals("/springtravel/app/foo", response.getRedirectedUrl());
    EasyMock.verify(new Object[] { flowExecutor });
View Full Code Here

  public void testDefaultHandleNoSuchFlowExecutionException() throws Exception {
    actionRequest.setContextPath("/springtravel");
    actionRequest.addParameter("execution", "12345");
    flowExecutor.resumeExecution("12345", actionContext);
    FlowException flowException = new NoSuchFlowExecutionException(new MockFlowExecutionKey("12345"), null);
    EasyMock.expectLastCall().andThrow(flowException);
    EasyMock.replay(new Object[] { flowExecutor });
    controller.handleAction(actionRequest, actionResponse, flowHandler);
    assertNotNull(actionRequest.getPortletSession().getAttribute("actionRequestFlowException"));
    EasyMock.verify(new Object[] { flowExecutor });
View Full Code Here

    public void testNoSuchFlowExecutionException() {
        MockHttpServletRequest request = new MockHttpServletRequest();
        request.setRequestURI("test");
        ModelAndView model = (this.resolver.resolveException(request,
            new MockHttpServletResponse(), null,
            new NoSuchFlowExecutionException(new FlowExecutionKey(){
           
                private static final long serialVersionUID = 1443616250214416520L;

                public String toString() {
                    return "test";
View Full Code Here

        MockHttpServletRequest request = new MockHttpServletRequest();
        request.setRequestURI("test");
        request.setQueryString("test=test");
        ModelAndView model = (this.resolver.resolveException(request,
            new MockHttpServletResponse(), null,
            new NoSuchFlowExecutionException(new FlowExecutionKey(){
               
                private static final long serialVersionUID = -4750073902540974152L;

                public String toString() {
                    return "test";
View Full Code Here

  protected Conversation getConversation(FlowExecutionKey key) throws NoSuchFlowExecutionException {
    try {
      ConversationId conversationId = (ConversationId) ((CompositeFlowExecutionKey) key).getExecutionId();
      return conversationManager.getConversation(conversationId);
    } catch (NoSuchConversationException e) {
      throw new NoSuchFlowExecutionException(key, e);
    }
  }
View Full Code Here

  public void testDefaultHandleNoSuchFlowExecutionException() throws Exception {
    actionRequest.setContextPath("/springtravel");
    actionRequest.addParameter("execution", "12345");
    flowExecutor.resumeExecution("12345", actionContext);
    FlowException flowException = new NoSuchFlowExecutionException(new MockFlowExecutionKey("12345"), null);
    EasyMock.expectLastCall().andThrow(flowException);
    EasyMock.replay(new Object[] { flowExecutor });
    controller.handleAction(actionRequest, actionResponse, flowHandler);
    assertNotNull(actionRequest.getPortletSession().getAttribute("actionRequestFlowException"));
    EasyMock.verify(new Object[] { flowExecutor });
View Full Code Here

  public void testDefaultHandleNoSuchFlowExecutionException() throws Exception {
    setupRequest("/springtravel", "/app", "/foo", "GET");
    request.addParameter("execution", "12345");
    flowExecutor.resumeExecution("12345", context);
    FlowException flowException = new NoSuchFlowExecutionException(new MockFlowExecutionKey("12345"), null);
    EasyMock.expectLastCall().andThrow(flowException);
    EasyMock.replay(new Object[] { flowExecutor });
    flowHandlerAdapter.handle(request, response, flowHandler);
    assertEquals("/springtravel/app/foo", response.getRedirectedUrl());
    EasyMock.verify(new Object[] { flowExecutor });
View Full Code Here

  public void testDefaultHandleNoSuchFlowExecutionExceptionAjaxRequest() throws Exception {
    setupRequest("/springtravel", "/app", "/foo", "GET");
    request.addParameter("execution", "12345");
    flowExecutor.resumeExecution("12345", context);
    FlowException flowException = new NoSuchFlowExecutionException(new MockFlowExecutionKey("12345"), null);
    EasyMock.expectLastCall().andThrow(flowException);
    EasyMock.replay(new Object[] { flowExecutor });
    context.setAjaxRequest(true);
    request.addHeader("Accept", "text/html;type=ajax");
    flowHandlerAdapter.handle(request, response, flowHandler);
View Full Code Here

    request.setPathInfo("/foo");
    request.setRequestURI("/springtravel/app/foo");
    request.setMethod("GET");
    request.addParameter("execution", "12345");
    executor.resumeExecution("12345", context);
    FlowException flowException = new NoSuchFlowExecutionException(new MockFlowExecutionKey("12345"), null);
    EasyMock.expectLastCall().andThrow(flowException);
    EasyMock.replay(new Object[] { executor });
    ModelAndView mv = controller.handleRequest(request, response);
    assertNull(mv);
    assertEquals("/springtravel/app/foo", response.getRedirectedUrl());
View Full Code Here

TOP

Related Classes of org.springframework.webflow.execution.repository.NoSuchFlowExecutionException

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.