A Lesson by Chiu-Ki Chan
MockWebServer makes it easy to test how your app reacts to various error conditions. We will look into three different cases in this demo.
In this lesson you will learn:
- How to have MockWebServer respond with an error code
- How to have MockWebServer respond with malformed JSON
- How to have MockWebServer throttle its response body
Pro Users: Sign in to access this lessons source code