Unit test « Schema « JPA Q&A





1. How to test DB queries when DB schema in question has lots of constraints?    stackoverflow.com

Background:

  • moderate DB schema (some 70 tables)
  • with lots of foreign keys and other constraints (not null etc.) between them
  • a shared DB fixture for all the tests
  • some simple tear-down logic which truncates "touched" ...

2. Database schema for unit tests    forum.hibernate.org