Part 1. JUnit essentials

Welcome to JUnit in Action, Second Edition. JUnit is a framework that was started by Kent Beck and Erich Gamma in late 1995. Ever since then, the popularity of the framework has been growing, and it’s now the de facto standard for unit testing Java applications.

This book is a second edition. The first edition was a best seller, written by Vincent Massol and Ted Husted in 2003, and was dedicated to version 3.x of JUnit.

We cover the newest version of JUnit, 4.6, and we talk about many features that were included after the first edition of the book. At the same time, we focus on some other interesting techniques in testing your code: mock objects, JUnit extensions, testing different layers of your application, and many ...

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.