Chapter 19. 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 book, we’ve analyzed tools focused on testing specific technologies, such as AJAX applications and database access. In this final chapter, 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 ...

Get JUnit in Action, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.