Easy Java Integrations Testing with Testcontainers
summary
Shows how to replace brittle local mocks with a reproducible 3-container test environment using Testcontainers and Docker, wiring a Java MicroProfile service on Payara Micro to Postgres and RabbitMQ and executing integration suites with JUnit 5. Walks through the actual Maven/Testcontainers setup and helper classes used, a demo project that runs locally and in CI, and concrete results: setup boilerplate falls from dozens of lines to under 50 and flaky failures disappear.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 5:40Integration testing struggles
- 15:00Introducing Testcontainers
- 24:28Live demo setup
- 30:00Running the demo
- 37:22Q&A
related talks
26mSimplify Your Dev Life with Testcontainers
46mRemoving complexity from integration tests using Testcontainers!
32mMock my infrastructure! Using Testcontainers for better integration tests.
47mIntegration Tests: testcontainers to the Rescue
26mRemoving Complexity from Integration Tests Using Testcontainers
15mTestcontainers: Simplify Your Integration Tests and Development
48mTestcontainers and Spring Boot from integration tests to local development!
54mExploring Jakarta EE integration testing
