Java Reference
In-Depth Information
JUnit on steroids
Make everything as simple as
possible, but not simpler.
—Albert Einstein
This chapter covers
Transparent mocks utilization
Out-of-the-box DbUnit integration
Extended assertion capabilities
Bypassing encapsulation through
reflection
Throughout this final part of the topic, we've analyzed tools focused on testing spe-
cific technologies, such as AJAX applications and database access. In this final chap-
ter, we evaluate tools that don't fit a particular niche but rather facilitate overall test
development by providing helper methods and plumbing infrastructure. By using
such tools, the developer can focus on the real functionality being tested, which
can greatly improve productivity.
Functionally speaking, we analyze tools that automate mock usage, provide a
wider number of assertion methods, use reflection to access private members of
tested objects, and make DbUnit usage easier. Because these tools provide generic
389
 
 
 
Search WWH ::




Custom Search