@Test public void testGet_ShouldUseCorrectHttpMethod() throws Exception { http.get("www.example.com", new HashMap<String, String>(), null, null); HttpUriRequest sentHttpRequest = (HttpUriRequest) Robolectric.getSentHttpRequest(0); assertThat(sentHttpRequest.getMethod(), equalTo(HttpGet.METHOD_NAME)); }
public Response get(String url, Map<String, String> headers, String username, String password) throws IOException, URISyntaxException { URI uri = new URI(url); return makeRequest(headers, username, password, new HttpGet(uri), uri.getHost()); }
Http { public Response get(String url, Map<String, String> headers, String username, String password) throws IOException, URISyntaxException { URI uri = new URI(url); return makeRequest(headers, username, password, new HttpGet(uri), uri.getHost()); } }
Http { public Response get(String url, Map<String, String> headers, String username, String password) throws IOException, URISyntaxException { URI uri = new URI(url); return makeRequest(headers, username, password, new HttpGet(uri), uri.getHost()); }  }
Http { public Response get(String url, Map<String, String> headers, String username, String password) throws IOException, URISyntaxException { URI uri = new URI(url); return makeRequest(headers, username, password, new HttpGet(uri), uri.getHost()); }  Response get(String url, Map<String, String> headers, String username, String password); Response post(String url, Map<String, String> headers, String postBody, String username, String password); }
Http { public Response get(String url, Map<String, String> headers, String username, String password) throws IOException, URISyntaxException { URI uri = new URI(url); return makeRequest(headers, username, password, new HttpGet(uri), uri.getHost()); }  Response get(String url, Map<String, String> headers, String username, String password); Response post(String url, Map<String, String> headers, String postBody, String username, String password);  }