Package org.strecks.view

Examples of org.strecks.view.ActionForwardViewAdapter


{

  @Override
  protected ViewAdapter executeAction(Object actionBean, ActionContext context)
  {
    return new ActionForwardViewAdapter(null);
  }
View Full Code Here


{

  @Override
  protected ViewAdapter executeAction(Object actionBean, ActionContext context)
  {
    return new ActionForwardViewAdapter(null);
  }
View Full Code Here

    expect(action.getBeforeInterceptors()).andReturn(actionBefores);
    actionBefore1.beforeExecute(actionBean, actionContext);
    actionBefore2.beforeExecute(actionBean, actionContext);

    expect(action.executeController(actionBean, actionContext)).andReturn(
        new ActionForwardViewAdapter(actionForward));

    expect(action.getAfterInterceptors()).andReturn(actionAfters);
    actionAfter1.afterExecute(actionBean, actionContext, null);
    actionAfter2.afterExecute(actionBean, actionContext, null);
View Full Code Here

{

  @Override
  protected ViewAdapter executeAction(Object actionBean, ActionContext context)
  {
    return new ActionForwardViewAdapter(null);
  }
View Full Code Here

  {
  }

  public ViewAdapter executeController(Object actionBean, ActionContext actionContext) throws Exception
  {
    return new ActionForwardViewAdapter(null);
  }
View Full Code Here

{

  @Override
  protected ViewAdapter executeAction(Object actionBean, ActionContext context)
  {
    return new ActionForwardViewAdapter(null);
  }
View Full Code Here

    replay(redirectHelper);

    ActionRedirectNavigationHandler handler = new ActionRedirectNavigationHandler();
    ViewAdapter viewAdapter = handler.getActionForward(new TestContextImpl(request), "action");

    ActionForwardViewAdapter va = (ActionForwardViewAdapter) viewAdapter;
    ActionForward actionForward = va.getActionForward();

    verify(request);
    verify(session);
    verify(redirectHelper);
View Full Code Here

    ActionForward actionForward = new ActionForward();

    ActionForwardNavigationHandler handler = new ActionForwardNavigationHandler();
    ViewAdapter viewAdapter = handler.getActionForward(new TestContextImpl(), actionForward);

    ActionForwardViewAdapter va = (ActionForwardViewAdapter) viewAdapter;
    assert (va.getActionForward() == actionForward);

  }
View Full Code Here

    expect(mapping.findForward("success")).andReturn(actionForward);

    replay(mapping);

    MappingNavigationHandler handler = new MappingNavigationHandler();
    ActionForwardViewAdapter viewAdapter = handler.getActionForward(new TestContextImpl(null, mapping), "success");

    ActionForwardViewAdapter va = (ActionForwardViewAdapter) viewAdapter;
    assert (va.getActionForward() == actionForward);

    verify(mapping);

  }
View Full Code Here

    replay(request);

    PageNavigationHandler handler = new PageNavigationHandler();
    ViewAdapter viewAdapter = handler.getActionForward(actionContext, pageClass);

    ActionForwardViewAdapter va = (ActionForwardViewAdapter) viewAdapter;
    ActionForward forward = va.getActionForward();

    assert forward instanceof PageForward;
    assertEquals(forward.getPath(), "page_path");

    verify(pageClass);
View Full Code Here

TOP

Related Classes of org.strecks.view.ActionForwardViewAdapter

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.