Retrofit 2 — Customizing Network Behavior of Mocked Server Responses

In our last Retrofit tutorial, we've introduced mocking server responses with MockRetrofit. We've mentioned on the side that we're using the NetworkBehavior class, but didn't go into the details of the configuration options. In this tutorial, we'll make up for that.

In case you need to make up for missed topics, check our list of Retrofit tutorials:

Retrofit Series Overview

  1. Callbacks (Coming soon)
  2. Annotations (Coming soon)
  3. Fluent Interface with Builders (Coming soon)


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $12/mo

Explore the Library

Find interesting tutorials and solutions for your problems.

Miscellaneous