@Test public void testSuccessfullyResponse() throws IOException { Object actualResult = target.getResponseData(inputStream); assertSame(EXPECTED_RESULT, actualResult); assertSame(JSON_OBJECT, target.latestJsonObject); }
@NonNull @Override public T getResponseData(@NonNull InputStream inputStream) throws IOException { try { return parseJsonToObject(jsonResponseParser.getResponseData(inputStream)); } catch (JSONException e) { throw new IOException(e); } }
JsonToObjectBaseResponseParser implements ResponseDataParser<T> { @NonNull @Override public T getResponseData(@NonNull InputStream inputStream) throws IOException { try { return parseJsonToObject(jsonResponseParser.getResponseData(inputStream)); } catch (JSONException e) { throw new IOException(e); } } }
JsonToObjectBaseResponseParser implements ResponseDataParser<T> { @NonNull @Override public T getResponseData(@NonNull InputStream inputStream) throws IOException { try { return parseJsonToObject(jsonResponseParser.getResponseData(inputStream)); } catch (JSONException e) { throw new IOException(e); } } JsonToObjectBaseResponseParser();  JsonToObjectBaseResponseParser(@NonNull String charsetName); @VisibleForTesting  JsonToObjectBaseResponseParser(@NonNull JsonResponseParser jsonResponseParser); }
JsonToObjectBaseResponseParser implements ResponseDataParser<T> { @NonNull @Override public T getResponseData(@NonNull InputStream inputStream) throws IOException { try { return parseJsonToObject(jsonResponseParser.getResponseData(inputStream)); } catch (JSONException e) { throw new IOException(e); } } JsonToObjectBaseResponseParser();  JsonToObjectBaseResponseParser(@NonNull String charsetName); @VisibleForTesting  JsonToObjectBaseResponseParser(@NonNull JsonResponseParser jsonResponseParser); @NonNull @Override T getResponseData(@NonNull InputStream inputStream); }
JsonToObjectBaseResponseParser implements ResponseDataParser<T> { @NonNull @Override public T getResponseData(@NonNull InputStream inputStream) throws IOException { try { return parseJsonToObject(jsonResponseParser.getResponseData(inputStream)); } catch (JSONException e) { throw new IOException(e); } } JsonToObjectBaseResponseParser();  JsonToObjectBaseResponseParser(@NonNull String charsetName); @VisibleForTesting  JsonToObjectBaseResponseParser(@NonNull JsonResponseParser jsonResponseParser); @NonNull @Override T getResponseData(@NonNull InputStream inputStream);  }