Android library to intercept http responses that fits into retrofit in order to create demo projects or mock your api endpoints.
See this medium article related to this package
HTTP response code manage for Android apps.
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));
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!
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.
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.
Mock your datas for Okhttp and Retrofit in json format in just a few moves.
An automated cookies manager library for android. It allows to handle HTTP request with cookies.
Android and Java library for mocking and testing networking layers with built-in support for Retrofit.
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.
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.
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).
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.
Java tool for mocking HTTP server behaviours for testing HTTP client code.
Get a full fake REST API with zero coding in less than 30 seconds.
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.
A tool for mocking HTTP services.
Features: