Package com.mockrunner.mock.web

Examples of com.mockrunner.mock.web.MockServletContext.addResourcePath()


        getMockFactory().refresh();
        servletModule = new ServletTestModule(getMockFactory());
        strutsModule = new ActionTestModule(getStrutsMockFactory());
       
        MockServletContext app = getMockFactory().getMockServletContext();
        app.addResourcePath("/WEB-INF/toolbox.xml","/WEB-INF/toolbox.xml");
        app.setResourceAsStream("/WEB-INF/toolbox.xml",
                new FileInputStream("./WEB-INF/toolbox.xml"));
       
        MockServletConfig config = getMockFactory().getMockServletConfig();
        config.setInitParameter(
View Full Code Here


       
        JspFactory.setDefaultFactory(new MockJspFactory(getMockFactory()));
       
        // setup resources needed for running Velocity
        MockServletContext app = getMockFactory().getMockServletContext();
        app.addResourcePath("/WEB-INF/toolbox.xml","/WEB-INF/toolbox.xml");
        app.setResourceAsStream(
                "/WEB-INF/toolbox.xml",
                new FileInputStream("./WEB-INF/toolbox.xml"));       
        MockServletConfig config = getMockFactory().getMockServletConfig();
        config.setInitParameter(
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.