Github上关于HTTP-Mocking的库

1.json-server

author:typicode stars:33780

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

2.wiremock

author:tomakehurst stars:2497

A tool for mocking HTTP services.

3.mockserver

author:jamesdbloom stars:1625

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).

4.Mocky

author:julien-lafont stars:871

Mock your HTTP responses to test your REST API.

5.RESTMock

author:andrzejchm stars:635

REST API mocking for Android made easy.

6.mock-api

author:shanbay stars:299

A json-api-mock framework for Android.

7.okhttp-json-mock

author:mirrajabi stars:193

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

8.aeromock

author:CyberAgent stars:150

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.

9.Mockery

author:VictorAlbertos stars:132

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

10.mockwebserverplus

author:orhanobut stars:75

OkHttp mockwebserver with fixtures extension.

11.mock-http-server

author:kristofa stars:69

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

12.Endpoint2Mock2

author:car2go stars:49

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.

13.Mocktrofit

author:vokal stars:45

Mocking Client for Retrofit.

14.fixd

author:lantunes stars:35

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.

15.okresponsefaker

author:Sloy stars:32

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.

16.okhttp-client-mock

author:gmazzo stars:26

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

17.OffIt

author:GabrielSamojlo stars:21

OffIt is simple but powerful mocking library based on Retrofit.

18.Endpoint2mock

author:car2go stars:16

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.

19.Milano

author:IntruderShanky stars:6

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