(Explains how to use Junit to unit test Java. Pragmatic programmers will use React to guide development and drive their own development process. When coding, the most effective response comes from "Unit Testing". In order to test a bridge, there is not only a bright climate, driving a car through the core of the bridge, thinking that the test of the bridge has been achieved. But a lot of programs are using this kind of testing -- call this one-pass test "testing". In fact, pragmatic programmers should be able to do better than this. Live unit testing makes the development process easier. It allows for more optimizations, and at the same time greatly reduces the time spent debugging code. From this book, you can learn: · Write better, faster, and less buggy code. · Find bugs outside of stealth, and learn how to fix those bugs. · Test a small piece of code without using a full-scale project. · Learn how to use JUnit to simplify test code. · How to turn on efficient testing in the development team. This book will describe unit testing with the help of JUnit, a free program library for Java: the same techniques apply to other languages ??and structures.
The Way of Unit Testing Java Edition: Using JUnit.pdf)