How to mock two APIs with MockWebServer Android test cases
问题 I am performing instrumentation testing, in that I am invoking one of the activities which call 2 APIs when activity is created. Now I want to write instrumentation test cases for this activity, where I have to mock the API response with mockWebServer of mockito. My mocking code works fine when I call one single API, but it fails when two APIs are getting called simultaneously. Even there is another scenario let's say, we have API to fetch recent message data , but before that, we always