~/talk

How to write your own DbUnit

Talkat Voxxed Days Luxembourg 2026 · 2026-06-18..06-19· [testing]
links:none on file
slides:none on file

Shows how to build a small JUnit extension that reads YAML/CSV/XML data files, instantiates an etcd Java client, etcd dataset seeds keys before a test and compares persisted state after, throwing an exception on mismatches; the demo test runs green. Uses DBUnit concepts wrapped as DBWriter features (comparison strategies, expected datasets, cleanup) and notes integration with Flyway/Liquibase and testcontainers, plus pitfalls: multi-DB support, diff output detail, dataset merging and scripting for dynamic values.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 0:22What is DBUnit and database writer
  3. 3:57Writing a custom JUnit extension
  4. 7:07Demo of etcd test case
  5. 8:54Drawbacks of custom solutions
  6. 13:27Maintenance and support considerations
  7. 14:14Q&A on integration with Liquibase/Flyway
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.