@Test public void getHttpMethodShouldReturnThingThatIsAlreadSet() { String url = "test"; HttpMethod method = HttpMethod.GET; HttpContent httpContent = new HttpContent(url, method); HttpMethod newMethod = httpContent.getMethod(); assertTrue(method.equals(newMethod)); }
public HttpMethod getMethod() { return method; }
HttpContent implements MultipartContainer { public HttpMethod getMethod() { return method; } }
HttpContent implements MultipartContainer { public HttpMethod getMethod() { return method; } HttpContent(String url, HttpMethod method); }
HttpContent implements MultipartContainer { public HttpMethod getMethod() { return method; } HttpContent(String url, HttpMethod method); HttpMethod getMethod(); String getUrl(); void addHeader(String key, String value); String getHeader(String key); Map<String, String> getHeaders(); void setBody(byte[] body); byte[] getBody(); @Override boolean hasMultipart(); @Override Multipart getMultipart(); void addPart(Part part); }
HttpContent implements MultipartContainer { public HttpMethod getMethod() { return method; } HttpContent(String url, HttpMethod method); HttpMethod getMethod(); String getUrl(); void addHeader(String key, String value); String getHeader(String key); Map<String, String> getHeaders(); void setBody(byte[] body); byte[] getBody(); @Override boolean hasMultipart(); @Override Multipart getMultipart(); void addPart(Part part);  }