Package com.reallifedeveloper.tools.test.database.dbunit
package com.reallifedeveloper.tools.test.database.dbunit
Support classes for writing DbUnit
tests that work with a real database.
DbUnit tests are useful for testing repository implementations, for example to
verify that JPA mappings and queries are correct. Don't overuse this kind of
tests, though; they are relatively slow. For testing non-repository classes,
such as services, it is better to inject in-memory repositories (see
InMemoryJpaRepository
).
- Author:
- RealLifeDeveloper
-
ClassesClassDescriptionBase class for DBUnit tests.A helper class used by
AbstractDbTest
.Generates a DTD for DbUnit XML files used to populate the test database.A class to read a DBUnit flat XML dataset file and populate aJpaRepository
using the information in the file.