Advanced HTTP Mocking with
summary
WireMock runs as an embedded HTTP server on device or on desktop, can record and playback live traffic (files + mappings saved during proxying to S3), and serves programmatic or REST-API stubs with header/body/regex/query matching, delays, faults, B64 bodies and scenario mappings for stateful sequences. Tests verify calls with Mockito‑like syntax and reset scenarios programmatically. Capital One uses it two years in Wallet; caveats: ~73,000 methods increases multidex needs, recommend minSdk 21 and prefer programmatic stubs for time‑sensitive or generated responses.
AI-written summary · about
chapters (10)
- 0:00Introduction to Wiremock
- 10:02What is Wiremock
- 13:53Recording HTTP traffic
- 16:43Playback of recorded mappings
- 20:13Stubbing programmatically
- 22:22Stubbing via REST API
- 26:18Complex stubbing features
- 33:01Opinions on stubbing methods
- 36:29Android integration caveats
- 38:15Final recommendations








