Latest commit 51939cd Jan 30, 2017 @swankjesse swankjesse committed on GitHub Merge pull request #2178 from square/jw/2017-01-30/mock-errors
Allow HTTP errors to be created as part of mock behavior.

README.md

Mock Web Server

An mock web server for mocking HTTP responses from a server, and simulating network behaviour.

Download

Download the latest JAR or grab via Maven:

<dependency>
  <groupId>com.squareup.retrofit2</groupId>
  <artifactId>retrofit-mock</artifactId>
  <version>see.latest.version</version>
</dependency>

or Gradle:

compile 'com.squareup.retrofit2:retrofit-mock:see.latest.version'

Snapshots of the development version are available in Sonatype's snapshots repository.