@Test public void parseNetworkResponse_shouldReturnSuccessResponse() throws Exception { NetworkResponse networkResponse = new NetworkResponse(200, "abc".getBytes(Charset.defaultCharset()), new HashMap<String, String>(), false); Response<Void> response = subject.parseNetworkResponse(networkResponse); assertThat(response.isSuccess()).isTrue(); }
@Override protected Response<Void> parseNetworkResponse(NetworkResponse networkResponse) { return Response.success(null, HttpHeaderParser.parseCacheHeaders(networkResponse)); }
ScribeRequest extends Request<Void> { @Override protected Response<Void> parseNetworkResponse(NetworkResponse networkResponse) { return Response.success(null, HttpHeaderParser.parseCacheHeaders(networkResponse)); } }
ScribeRequest extends Request<Void> { @Override protected Response<Void> parseNetworkResponse(NetworkResponse networkResponse) { return Response.success(null, HttpHeaderParser.parseCacheHeaders(networkResponse)); } ScribeRequest(@NonNull String url,
            @NonNull List<BaseEvent> events,
            @NonNull EventSerializer eventSerializer,
            @NonNull Listener listener); }
ScribeRequest extends Request<Void> { @Override protected Response<Void> parseNetworkResponse(NetworkResponse networkResponse) { return Response.success(null, HttpHeaderParser.parseCacheHeaders(networkResponse)); } ScribeRequest(@NonNull String url,
            @NonNull List<BaseEvent> events,
            @NonNull EventSerializer eventSerializer,
            @NonNull Listener listener); @NonNull @Deprecated @VisibleForTesting List<BaseEvent> getEvents(); }
ScribeRequest extends Request<Void> { @Override protected Response<Void> parseNetworkResponse(NetworkResponse networkResponse) { return Response.success(null, HttpHeaderParser.parseCacheHeaders(networkResponse)); } ScribeRequest(@NonNull String url,
            @NonNull List<BaseEvent> events,
            @NonNull EventSerializer eventSerializer,
            @NonNull Listener listener); @NonNull @Deprecated @VisibleForTesting List<BaseEvent> getEvents();  }