Android Endpoint Integration Tests with Mocked Endpoints
summary
An end-to-end integration test framework that builds about 40 endpoints and uses an OkHttp interceptor to return recorded responses distinguishes app bugs from flaky back ends, runs as JUnit tests with RxJava off the main thread, and gives 3–5 seconds iteration feedback. It supports mock only / log only / do not mock modes, saves response files and matching specs, substitutes dates and params to avoid time brittleness, and safely handles side‑effect calls by avoiding network hits when configured.
AI-written summary · about
chapters (11)
- 0:00Intro
- 0:41The Problem
- 4:42Requirements
- 5:40The Example
- 8:04Rx Java
- 9:21Testing the Observable
- 13:13A Mocked Interceptor
- 17:15Matching Requests
- 20:24Saving New Mocks
- 24:10Back to the Test with Side Effects
- 26:49Photo Credits








