Package org.springframework.webflow.execution

Examples of org.springframework.webflow.execution.View.render()


    EasyMock.replay(new Object[] { context });

    View view = factory.getView(context);
    ((JsfView) view).getViewRoot().setTransient(true);
    view.render();

    assertTrue(newRoot.isTransient());
    assertTrue(((NoRenderViewHandler) viewHandler).rendered);
  }
View Full Code Here


    TestAction action = new TestAction();
    ActionExecutingViewFactory factory = new ActionExecutingViewFactory(action);
    MockRequestContext context = new MockRequestContext();
    View view = factory.getView(context);
    assertFalse(action.isExecuted());
    view.render();
    assertTrue(action.isExecuted());
  }

  public void testProcessUserEvent() throws IOException {
    TestAction action = new TestAction();
View Full Code Here

    TestAction action = new TestAction();
    ActionExecutingViewFactory factory = new ActionExecutingViewFactory(action);
    MockRequestContext context = new MockRequestContext();
    View view = factory.getView(context);
    assertFalse(action.isExecuted());
    view.render();
    assertTrue(action.isExecuted());
    context.putRequestParameter("_eventId", "foo");
    view.processUserEvent();
    assertTrue(view.hasFlowEvent());
    assertEquals("foo", view.getFlowEvent().getId());
View Full Code Here

    TestAction action = new TestAction();
    ActionExecutingViewFactory factory = new ActionExecutingViewFactory(action);
    MockRequestContext context = new MockRequestContext();
    View view = factory.getView(context);
    assertFalse(action.isExecuted());
    view.render();
    assertTrue(action.isExecuted());
    context.putRequestParameter("_eventId_foo", "doesn't matter");
    view.processUserEvent();
    assertTrue(view.hasFlowEvent());
    assertEquals("foo", view.getFlowEvent().getId());
View Full Code Here

    TestAction action = new TestAction();
    ActionExecutingViewFactory factory = new ActionExecutingViewFactory(action);
    MockRequestContext context = new MockRequestContext();
    View view = factory.getView(context);
    assertFalse(action.isExecuted());
    view.render();
    assertTrue(action.isExecuted());
    view.processUserEvent();
    assertFalse(view.hasFlowEvent());
    assertNull(view.getFlowEvent());
  }
View Full Code Here

    EasyMock.replay(new Object[] { this.context });

    View view = this.factory.getView(this.context);
    ((JsfView) view).getViewRoot().setTransient(true);
    view.render();

    assertTrue(newRoot.isTransient());
    assertTrue(((NoRenderViewHandler) this.viewHandler).rendered);
  }
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.