Android developer portal with tools, libraries, and apps

Show: All / Free / Paid / Demo

A simple OKHttp client mock, using a programmable request interceptor MockInterceptor interceptor = new MockInterceptor(); OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(interceptor) .build();

Then in the tests: interceptor.addRule(new Rule.Builder() .get() .url("https://testserver/api/json") .respond("{succeed:true}", MEDIATYPE_JSON));

Feb 17, 2018

OffIt is simple but powerful mocking library based on Retrofit.

Do you want to build a demo of your app without worries about your backend reliability? Or maybe you want to prototype your app quickly or just don't have any backend yet? And maybe you just want to quickly mock your Retrofit responses in your tests?

OffIt is for you!

Jan 15, 2018
Commercial

Endpoint2mock2 is a library for mocking Retrofit 2 Http endpoint in your Android app. It works just by adding @MockedEndpoint annotation to the Retrofit calls.

Oct 17, 2017

Sometimes when working with REST APIs in Android apps there is a need to return some mock data. Maybe for demo purposes, or real endpoint is just not ready yet. Endpoint2mock aims to help with that by integrating with Retrofit and allowing you to easily redirect some (but not all!) of your requests to your mock server.

Sep 4, 2017

Mock your datas for Okhttp and Retrofit in json format in just a few moves.

Feb 9, 2017

An automated cookies manager library for android. It allows to handle HTTP request with cookies.

Oct 5, 2016

A json-api-mock framework for Android.

Aug 24, 2016

Android and Java library for mocking and testing networking layers with built-in support for Retrofit.

Jul 14, 2016

Mocking Client for Retrofit.

Apr 28, 2016

REST API mocking for Android made easy.

Apr 22, 2016

OkHttp mockwebserver with fixtures extension.

Apr 7, 2016

OkResponseFaker uses a special OkHttp Interceptor that allows you to provide a custom response for the next or more requests executed, allowing you to easily debug feedback to special cases in your application. You can fake response status and body using the FakeResponse interface. Use simple static data, or build a complex response using JSON objects.

Sep 19, 2015
Advertisement

Aeromock is an application server that generates HTML from template files and data files. It enables speedy frontend development without the need for server side modules. Aeromock is referred to as a lightweight mock web application server.

Jun 29, 2015

MockServer is a mock HTTP server that enables easy mocking of any system you integrate with via HTTP or HTTPS (i.e. services, web sites, etc).

Mar 7, 2015

Fixd is an HTTP server fixture for testing web clients. Unlike a mock web server, it is backed by a fully functional HTTP server, bound to a port of your choosing. Its fluent interface allows you to quickly and easily script responses to client requests. Its clear, declarative interface also makes the setup portion of your unit tests easy to read and understand.

Mar 7, 2015

Java tool for mocking HTTP server behaviours for testing HTTP client code.

Mar 7, 2015

Get a full fake REST API with zero coding in less than 30 seconds.

Mar 7, 2015
Advertisement

Mock your HTTP responses to test your REST API.

Mocky is a simple app which allows to generate custom HTTP responses. It's helpful when you have to request a build-in-progress WS, when you want to mock the backend response in a single app, or when you want to test your WS client.

Mar 7, 2015

A tool for mocking HTTP services.

Features:

  • HTTP response stubbing, matchable on URL, header and body content patterns
  • Request verification
  • Runs in unit tests, as a standalone process or as a WAR app
  • Configurable via a fluent Java API, JSON files and JSON over HTTP
  • Record/playback of stubs
  • Fault injection
  • Per-request conditional proxying
  • Browser proxying for request inspection and replacement
  • Stateful behaviour simulation
  • Configurable response delays
Mar 7, 2015