@Test(expected = IllegalArgumentException.class) public void builderGenerationNoJsonInGet() throws Exception { BaseRequest.Builder<DummyResponse> builder = new BaseRequest.Builder<>(Request.Method.GET, url, DummyResponse.class); builder.json(dummyRequestObject); BaseRequest<DummyResponse> baseRequest = builder.build(); baseRequest.getJsonObject(); }
@Nullable public Object getJsonObject() { return jsonObject; }
BaseRequest extends AbstractRequest<T> { @Nullable public Object getJsonObject() { return jsonObject; } }
BaseRequest extends AbstractRequest<T> { @Nullable public Object getJsonObject() { return jsonObject; } protected  BaseRequest(Builder builder); }
BaseRequest extends AbstractRequest<T> { @Nullable public Object getJsonObject() { return jsonObject; } protected  BaseRequest(Builder builder); @NonNull String getJsonContentType(); @Override @NonNull String getBodyContentType(); @Nullable byte[] getJsonBody(); @Override @NonNull String getUrl(); @Nullable Object getJsonObject(); @Override @Nullable Map<String, String> getParams(); }
BaseRequest extends AbstractRequest<T> { @Nullable public Object getJsonObject() { return jsonObject; } protected  BaseRequest(Builder builder); @NonNull String getJsonContentType(); @Override @NonNull String getBodyContentType(); @Nullable byte[] getJsonBody(); @Override @NonNull String getUrl(); @Nullable Object getJsonObject(); @Override @Nullable Map<String, String> getParams();  }