Setting Up Data Driven Tests with Java Tools
summary
Shows how to provision isolated databases with Testcontainers Oracle Free and wire JUnit 5 + Spring Boot tests, use DbUnit or Database Rider to seed and assert DB state, and run a live demo where tests turn green then fail when expectations change. Demonstrates driver availability from Maven Central, that official images are 9 GB and ~3 minutes to boot versus slim images ~900 MB and ~10 seconds, and that @ServiceConnection removes DynamicPropertySource plumbing. Tests run and verify data diffs automatically.
AI-written summary · about
chapters (14)
- 0:00Introduction and agenda
- 1:06Testing challenges in the past
- 6:44Introducing Testcontainers
- 10:12Java testing frameworks
- 13:47Provisioning databases with Testcontainers
- 14:10Setting database state with DBUnit
- 21:17Oracle database in containers
- 27:20Live demo setup
- 30:54Demo using DBUnit and Testcontainers
- 38:02Demo using Database Rider
- 41:56Q&A session part 1
- 47:01Q&A session part 2
- 51:04Q&A session part 3
- 53:21Future improvements and resources
related talks
46mSetting Up Data Driven Tests with Java Tools
38mSetting up data driven tests with Java tools
50mSetting up Data Driven #Tests with #Java Tools
39mAndres Almiray: Setting Up Data Driven Tests
21mTest Containers: Where Every Test Starts Fresh
32mMock my infrastructure! Using Testcontainers for better integration tests.
13mImproving Integration Tests using Testcontainers
48mMaking Your Testcontainers Experience Smoother
