Part 1. JUnit distilled

In part 1, you’ll become test-infected! Through a simple example, chapter 1 will teach you what the JUnit framework is and what problems it solves. Chapter 2 will take you on a discovery tour of the core JUnit classes and how to best use them. In chapter 3, you’ll practice your new JUnit knowledge on a real-world example. You’ll also learn how to set up a JUnit project and how to execute the unit tests. Chapter 4 steps back and explains why unit test are important and how they fit in the global testing ecosystem. It also presents the Test-Driven Development methodology and provides guidance on measuring your test coverage. Chapter 5 demonstrates how to automate unit testing using three popular tools: Eclipse, Ant, and Maven. ...

Get JUnit in Action 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.