How to Use This Book

This book is divided into four main sections:

  • Unit-Testing Foundations provides you with a starter set of information about writing basic tests in JUnit. You’ll learn how to incorporate JUnit into your project, you’ll write a sample test, you’ll write a couple of more-realistic tests, you’ll learn about JUnit organization and assertions, and you’ll pick up a few core quality practices for unit testing.

  • Mastering Manic Mnemonics! presents a trilogy of acronyms for improving the quality of your unit testing: the FIRST properties of good tests, the Right-BICEP for determining what to test, and the CORRECT way of exploring boundary conditions.

  • The Bigger Design Picture focuses on the relevance of design to unit testing and vice ...

Get Pragmatic Unit Testing in Java 8 with JUnit 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.