Setting up data driven tests with Java tools
summary
Shows a concrete setup using JUnit 5, Maven verify and Testcontainers to spin up Oracle Free images (starts ~10–30s) and run real DB tests instead of H2; uses DbUnit XML datasets or YAML and Database Rider and DbUnit annotations to load initial state and assert expected state with a diff, including inserts and PL/SQL paths. Demo runs end-to-end, intentionally fails once to show diagnostics, then passes — plumbing code is reduced and works with Spring Boot.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 1:50Java testing frameworks
- 3:15Database testing challenges
- 5:00Modern Java testing tools
- 6:45Testcontainers game changer
- 8:11Oracle converged database
- 9:59Free Oracle database for developers
- 11:47Simplify DB testing with Testcontainers
- 13:31Demo project setup
- 16:19Demo app structure
- 18:08Test closer to DB
- 19:11First DBUnit test
- 22:26First test scenario
- 24:54DBUnit datasets
- 25:56Database Rider intro
- 28:43Maven verify demo
- 31:15Fail test intentionally
- 33:21Real DB testing benefits
- 34:03Oracle dev tools commitment
- 35:49Java testing resources
- 37:14Key takeaways and closing remarks
related talks
59mSetting Up Data Driven Tests with Java Tools
46mSetting Up Data Driven Tests with Java Tools
50mSetting up Data Driven #Tests with #Java Tools
39mAndres Almiray: Setting Up Data Driven Tests
58mTDD for database related code, how is it possible?
39mEasy Java Integrations Testing with Testcontainers
32mMock my infrastructure! Using Testcontainers for better integration tests.
51mTest-Driven: from Zero to Hero
