4
For API testing purposes, I need to read json files that would be my answer in API requests.
Well, with Retrofit 1.9 it was possible to implement a "Client" and overwrite the "execute()" method to read the json file locally.
With Retrofit 2.0, it is accepted only instances of Okhttpclient and can no longer do 'custom clients''.
How best to get around this and mock my Client and read the Json file locally?
Theoretically you don’t need to use Retrofit to read this JSON locally, just point to the location. Then just use JSON Parsers only.
– Walter Gandarella