Testing Object Persistence
In the next section, we examine how SpringUnit is used
to perform integration testing of the data access layer.
First, we consider the problem of creating stateless tests
with a database, and how the framework addresses this.
Second, we look at how the Case Study pre-populates the
database with objects at the beginning of each test.
Third, we show how typical CRUD operations are
tested in the Case Study.
Finally, we demonstrate how the Case Study uses
reusable test data made possible by SpringUnit
in order to test finder methods.