Package com.sun.facelets.mock

Examples of com.sun.facelets.mock.MockHttpServletRequest


    protected void setUp() throws Exception {
        super.setUp();
        URI context = this.getContext();

        this.servletContext = new MockServletContext(context);
        this.servletRequest = new MockHttpServletRequest(this.servletContext,
                context);
        this.servletResponse = new MockHttpServletResponse();

        // initialize Faces
        this.initFaces();
View Full Code Here


        ResponseWriter rw = faces.getRenderKit().createResponseWriter(new StringWriter(), null, null);
        faces.setResponseWriter(rw);
    }
   
    public void setRequest(String method, String path, OutputStream os) {
        this.servletRequest = new MockHttpServletRequest(this.servletContext, method, path);
        //this.servletResponse = new MockHttpServletResponse(os);
        this.factoryFacesContext.getFacesContext(this.servletContext,
                this.servletRequest, this.servletResponse,
                this.factoryLifecycle
                        .getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE));
View Full Code Here

TOP

Related Classes of com.sun.facelets.mock.MockHttpServletRequest

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.