Package org.apache.struts.mock

Examples of org.apache.struts.mock.MockServletConfig


    /**
     * Set up mock objects.
     */
    public void setUp() {
        config      = new MockServletConfig();
        request     = new MockHttpServletRequest();
        response    = new MockHttpServletResponse();
        pageContext = new MockPageContext(config, request, response);
        htmlTag     = new HtmlTag();
        htmlTag.setPageContext(pageContext);
View Full Code Here


        }
    }

    // ----public ModuleConfig getModuleConfig(PageContext pageContext)
    public void testModuleConfig_getModuleConfig_PageContext() {
        MockServletConfig mockServletConfig = new MockServletConfig();
        ModuleConfig moduleConfig = new ModuleConfigImpl("");
        MockServletContext mockServletContext = new MockServletContext();
        MockHttpServletRequest mockHttpServletRequest =
            new MockHttpServletRequest();
        MockHttpServletResponse mockHttpServletResponse =
            new MockHttpServletResponse();

        mockServletConfig.setServletContext(mockServletContext);

        MockPageContext mockPageContext =
            new MockPageContext(mockServletConfig, mockHttpServletRequest,
                mockHttpServletResponse);
View Full Code Here

TOP

Related Classes of org.apache.struts.mock.MockServletConfig

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.