@Test public void responseShouldBeDeliveredWhenDeliveredResponseIsCalled() { String content = "test response"; TestListener<String> testListener = new TestListener<String>(content); VolleyerRequest<String> request = new VolleyerRequest<String>(httpContent, clazz, responseParser, testListener, errorListener); request.deliverResponse(content); assertThat(testListener.isDelivered(), is(true)); }
@Override protected void deliverResponse(T result) { listener.onResponse(result); }
VolleyerRequest extends Request<T> implements MultipartContainer { @Override protected void deliverResponse(T result) { listener.onResponse(result); } }
VolleyerRequest extends Request<T> implements MultipartContainer { @Override protected void deliverResponse(T result) { listener.onResponse(result); } VolleyerRequest(HttpContent httpContent, Class<T> clazz, NetworkResponseParser responseParser, Listener<T> listener, ErrorListener errorListener); }
VolleyerRequest extends Request<T> implements MultipartContainer { @Override protected void deliverResponse(T result) { listener.onResponse(result); } 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 protected void deliverResponse(T result) { listener.onResponse(result); } 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();  }