Preface

[1] JUnit 4, which came out in 2006, was the first update in five years that JUnit received, but at the time of writing, its adoption is still quite marginal, as most Java projects are still using JUnit 3.

Chapter 1

[1] Unless specified otherwise, the term JUnit used throughout this book refers to JUnit 3.

[2] Certain programming languages such as C# or Eiffel offer mechanisms that make this observation irrelevant. Unfortunately, Java doesn’t have any similar feature, and we are therefore forced to follow this suggestion, which has a tendency to make Java classes much more verbose than they could be.

[3] Even this simple rule of thumb can be argued in many ways. For example, many programmers tend to stay away from protected ...

Get Next Generation Java™ Testing: TestNG and Advanced Concepts 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.