Package com.github.restdriver.clientdriver

Examples of com.github.restdriver.clientdriver.RealRequest


   
    @Test
    public void testExpectedHeadersAreCheckedCaseInsensitively() throws Exception {
       
        headers.put("host", "testhost");
        RealRequest real = mockRealRequest("aaaaa", Method.GET, headers, params, content, contentType);
        ClientDriverRequest expected = new ClientDriverRequest("aaaaa").withMethod(Method.GET).withHeader("Host", Pattern.compile("testhost"));
       
        assertThat(sut.isMatch(real, expected), is(true));
    }
View Full Code Here


   
    @Test
    public void testExcludedHeadersAreCheckedCaseInsensitively() throws Exception {
       
        headers.put("host", "testhost");
        RealRequest real = mockRealRequest("aaaaa", Method.GET, headers, params, content, contentType);
        ClientDriverRequest expected = new ClientDriverRequest("aaaaa").withMethod(Method.GET).withoutHeader("Host");
       
        assertThat(sut.isMatch(real, expected), is(false));
    }
View Full Code Here

TOP

Related Classes of com.github.restdriver.clientdriver.RealRequest

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.