This book is designed to give you an overview of the capabilities of JUnit and how to get started integrating tests into your projects. It also demonstrates how to retrofit your existing code base to make use of unit testing.
This book is aimed at developers that have some experience writing and working with Java, but haven’t worked with JUnit before. There are examples of Java programs and code that perform basic functions that can be built into larger programs and systems. This approach maps well to the unit testing philosophy, where chunks of the code base can be isolated and tested, eventually building up a large degree of coverage of your system.