Fake It until You Make It! API Integration Testing with Containers & WireMock
summary
Shows how to combine Testcontainers and WireMock (yok) to run real integration tests: a WireMock-based mock packaged as a Testcontainers model, used both as an in-container service and as an external proxy for fault injection and recording. Demonstrates Java/Spring Boot demos, a webhook end-to-end test that runs in CI, Docker Compose and health-check integration, and faster local runs by reusing containers versus heavyweight harnesses. Key ideas: WireMock inside Testcontainers, WireMock as proxy for fault injection.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 2:26Challenges in integration
- 5:31Approaches to testing
- 8:51Using test containers
- 13:32Testcontainers demo
- 15:32API mocking with WireMock
- 19:42Combining tools and demos
- 23:37Advanced integration patterns
- 30:15Framework portability
- 35:13Q&A session
- 39:10Spring Boot example
related talks
33mMock Me If You Can: Using Mocks in Container Applications for Integration Testing
47mScaling Integration Tests: Parallel Spring Tests with JUnit & Testcontainers
47mIntegration Tests: testcontainers to the Rescue
39mEasy Java Integrations Testing with Testcontainers
26mSimplify Your Dev Life with Testcontainers
32mWiremock: because your microservice needs a buddy when you're testing
38mDoublers in Tests. Wiremock vs Mockito
48mContainers for Real Integration Tests
