Package com.rallydev.rest.matchers

Examples of com.rallydev.rest.matchers.HttpRequestUrlMatcher


    @Test
    public void shouldDelete() throws Exception {
        String url = "/defect/12345";
        doReturn("").when(client).doRequest(any(HttpDelete.class));
        client.doDelete(url);
        verify(client).doRequest(argThat(new HttpRequestUrlMatcher(client.getWsapiUrl() + url)));
    }
View Full Code Here


    @Test
    public void shouldGet() throws Exception {
        String url = "/defect/12345";
        doReturn("").when(client).doRequest(any(HttpGet.class));
        client.doGet(url);
        verify(client).doRequest(argThat(new HttpRequestUrlMatcher(client.getWsapiUrl() + url)));
    }
View Full Code Here

        String url = "/defect/1234";
        client.client = spy(client.client);
        doReturn(createMockResponse("{}")).when(client.client).execute(any(HttpGet.class));
        client.doGet(url);
        Assert.assertTrue(client.client instanceof DecompressingHttpClient);
        verify(client.client).execute(argThat(new HttpRequestUrlMatcher(client.getWsapiUrl() + url)));
    }
View Full Code Here

TOP

Related Classes of com.rallydev.rest.matchers.HttpRequestUrlMatcher

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.