Sign in Go Pro

MockWebServer

Handling Error Conditions

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next

Previous

About

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

Instructor

Links

Lessons in MockWebServer