Java Reference
In-Depth Information
reuse throughout the project. With creativity, experience, and planning, it's possible
to write DbUnit tests in an efficient and enjoyable way.
In this chapter, we demonstrated through progressive examples how to use DbUnit
to populate the database before tests, assert the database contents after the tests, create
datasets from existing databases, and use advanced API s to make tests easier to write
and maintain. In the next chapter, we show how to extend these techniques to JPA -
based applications, and in chapter 19 we cover tools that enhance JU nit, including
Unitils, which provides some of this chapter's techniques out of the box.
Search WWH ::




Custom Search