If your app integrates with a server API, mocking server responses is important for tests. In unit tests it's easy to mock the object doing the API calls, but on a UI test it's harder. We're going to show how to mock Retrofit API calls in UI tests with a quick solution using MockWebServer and Hilt.
Read More