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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.