@Test public void bodyShouldBeSameWithThatOfHttpContent() { byte[] body = {'h', 'e', 'l', 'l', 'o'}; httpContent.setBody(body); Request<String> request = new VolleyerRequest<String>(httpContent, clazz, responseParser, listener, errorListener); try { assertEquals(httpContent.getBody(), request.getBody()); } catch (AuthFailureError e) { e.printStackTrace(); } }
@Override public byte[] getBody() { return httpContent.getBody(); }
VolleyerRequest extends Request<T> implements MultipartContainer { @Override public byte[] getBody() { return httpContent.getBody(); } }
VolleyerRequest extends Request<T> implements MultipartContainer { @Override public byte[] getBody() { return httpContent.getBody(); } VolleyerRequest(HttpContent httpContent, Class<T> clazz, NetworkResponseParser responseParser, Listener<T> listener, ErrorListener errorListener); }
VolleyerRequest extends Request<T> implements MultipartContainer { @Override public byte[] getBody() { return httpContent.getBody(); } VolleyerRequest(HttpContent httpContent, Class<T> clazz, NetworkResponseParser responseParser, Listener<T> listener, ErrorListener errorListener); @Override Map<String, String> getHeaders(); @Override byte[] getBody(); @Override boolean hasMultipart(); @Override Multipart getMultipart(); }
VolleyerRequest extends Request<T> implements MultipartContainer { @Override public byte[] getBody() { return httpContent.getBody(); } VolleyerRequest(HttpContent httpContent, Class<T> clazz, NetworkResponseParser responseParser, Listener<T> listener, ErrorListener errorListener); @Override Map<String, String> getHeaders(); @Override byte[] getBody(); @Override boolean hasMultipart(); @Override Multipart getMultipart();  }