Mocking API Responses using a Retrofit Client in Android (Retrofit 1.9)

Writing test cases in Android can be quite a daunting task, especially the handling of different server responses. Testing error responses can be quite problematic and your app might not cover all the different scenarios. If you are using Retrofit 1.9 and below to do your network calls, testing error responses can be quite simple. There […]