AndroidHttpMockingExamples
AndroidHttpMockingExamples copied to clipboard
"androidTest" Examples for WireMock 2.x and okhttp MockWebServer 3.x
AndroidHttpMockingExamples
These are examples by @HandstandSam - https://handstandsam.com to allow you to mock out external HTTP services on and Android device itself.
Android "androidTest" Examples for:
- WireMock 2.8.0
- okhttp MockWebServer 3.8.0
Links
- WireMock (by @tomakehurst) - http://wiremock.org/
- WireMock on GitHub - https://github.com/tomakehurst/wiremock/
- okhttp MockWebServer on GitHub - https://github.com/square/okhttp/tree/master/mockwebserver
Credits
The Sample Application and Espresso Testing Logic is from the following repositories:
- https://github.com/mutexkid/weatherview
- https://github.com/mike011/Wiremock_Android_Example
Thanks @yogurtearl for tips about how he got WireMock 1.x to work on Android.
Thanks @abhagupta for your help in wrangling WireMock 2.1.x to work on Android.