~/talk

TDD for database related code, how is it possible?

Talkat JavaDay 2013 · on Saturday, 2013-10-19· [testing, databases]
slides:none on file

Claims that full TDD on database code is practical and shows live-coded examples using Hibernate + Spring with DBUnit Unitils Liquibase to version schemas, load XML datasets, and run tests against a real DB (or H2 in-memory). Demonstrates patterns: transaction rollback for isolation, “each test is a hero” isolated data setup, and selectively disabling constraints to simplify cases. Builds save/delete/search tests that actually hit the database, runs them green, and reports this workflow reduces human checklist errors and enables safe schema refactoring.

AI-written summary · about

  1. 0:00Introduction
  2. 3:22Why test data
  3. 7:34Testing DB code techniques
  4. 15:28Tests on real DB
  5. 23:19DB schema versioning
  6. 26:26TDD benefits for DB
  7. 29:57Code demo
  8. 53:12Q&A
~/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.