Testing Retrofit calls with OkHttp MockWebServer

Retrofit – probably the most popular networking client in Android development. Basically it allows to create HTTP client in an interface – you just add annotation with HTTP method, relative or absolute path and proper request is constructed. Retrofit does not generate code in compile time – it creates implementations in runtime. import okhttp3.ResponseBodyimport retrofit2.Callimport …

Testing Retrofit calls with OkHttp MockWebServer Read More »