Package org.strecks.action

Examples of org.strecks.action.BasicAction


  {

    BasicController action = new BasicController();
    ActionForward actionForward = new ActionForward();

    BasicAction actionBean = createMock(BasicAction.class);
    ActionMapping mapping = createMock(ActionMapping.class);

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

    replay(actionBean);
    replay(mapping);
View Full Code Here


{

  @Override
  protected ViewAdapter executeAction(Object actionBean, ActionContext context)
  {
    BasicAction action = (BasicAction) actionBean;
    String result = action.execute();

    return getActionForward(context, result);
  }
View Full Code Here

TOP

Related Classes of org.strecks.action.BasicAction

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.