Package com.meterware.httpunit

Examples of com.meterware.httpunit.HeadMethodWebRequest


        }
    }

    @Test
    public void head() throws Exception {
        clientResponse = client.getResponse(new HeadMethodWebRequest("http://localhost/myapps/app1/internal.htm"));
        clientResponseCode = clientResponse.getResponseCode();
        clientResponseContent = clientResponse.getText();

        assertEquals(200, clientResponseCode);
        assertEquals(null, trimToNull(clientResponseContent));
View Full Code Here


        }
    }

    @Test
    public void head() throws Exception {
        clientResponse = client.getResponse(new HeadMethodWebRequest("http://localhost/myapps/app1/internal.htm"));
        clientResponseCode = clientResponse.getResponseCode();
        clientResponseContent = clientResponse.getText();

        assertEquals(200, clientResponseCode);
        assertEquals(null, trimToNull(clientResponseContent));
View Full Code Here

TOP

Related Classes of com.meterware.httpunit.HeadMethodWebRequest

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.