Package org.strecks.controller.impl

Examples of org.strecks.controller.impl.ReadOnlyControllerAction


    ActionMapping mapping = createMock(ActionMapping.class);
    ActionCreatorImpl creator = createMock(ActionCreatorImpl.class);

    expect(mapping.getType()).andReturn(TestAction.class.getName());
    expect(creator.createAction(TestAction.class)).andReturn(new ReadOnlyControllerAction());
    expect(mapping.getType()).andReturn(TestAction.class.getName());

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


  {

    ModuleConfig config = createMock(ModuleConfig.class);
    ServletContext context = createMock(ServletContext.class);
    ActionServlet servlet = createMock(ActionServlet.class);
    ReadOnlyControllerAction action = createMock(ReadOnlyControllerAction.class);
    ControllerProcessorDelegate delegate = createMock(ControllerProcessorDelegate.class);

    expect(servlet.getServletContext()).andReturn(context);   
    expect(config.getPrefix()).andReturn("prefix");
    expect(delegate.handleActionPerform(action, new TestContextImpl())).andReturn(null).times(1);
View Full Code Here

TOP

Related Classes of org.strecks.controller.impl.ReadOnlyControllerAction

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.