Setting Up Data Driven Tests with Java Tools
summary
Shows how to provision a real DB per test with Testcontainers, seed and assert state with DBUnit or Database Rider, and run JUnit 5 tests that insert customers and compare expected XML/YAML datasets. Demo uses an Oracle image (official 9 GB / ~3 min start vs lightweight 900 MB / ~10 s), seeds two customers then inserts a third, tests pass and then fail when expected counts change, and containers reinitialize per test for pristine state.
AI-written summary · about
chapters (16)
- 0:00Introduction and welcome
- 1:20Talk overview and agenda
- 2:03Legacy database testing challenges
- 8:44Introducing Testcontainers
- 13:00Database testing with DBUnit
- 19:41Oracle database alternatives
- 20:44Demo setup and dependencies
- 23:54DBUnit test case walkthrough
- 29:10Running and verifying test cases
- 30:15Simplifying with Database Rider
- 33:06Automating container setup
- 35:52Handling complex data sets
- 38:19Future of Database Rider
- 39:21Oracle in CI/CD pipelines
- 40:23Speaker introduction and resources
- 42:47Q&A session
related talks
59mSetting Up Data Driven Tests with Java Tools
50mSetting up Data Driven #Tests with #Java Tools
38mSetting up data driven tests with Java tools
39mAndres Almiray: Setting Up Data Driven Tests
21mTest Containers: Where Every Test Starts Fresh
47mIntegration Tests: testcontainers to the Rescue
15mHow to write your own DbUnit
58mTDD for database related code, how is it possible?
