第一章
all unit testing frameworks should follow:
Each unit test must run independently of all other unit tests.
..
The framework must detect and report errors test by test.
..
It must be easy to define which unit tests will run.
第二章
Design patterns in action: Facade
JUnit best practices: unit-test one object at a time
JUnit best practices: explain the failure reason in assert calls
JUnit best practices: one unit test equals one @Test method
JUnit best practices: test anything that could possibly fail
JUnit best practices: explain the failure reason in assert calls
JUnit best practices: make exception tests easy to read
JUnit best practices: let the test improve the code
JUnit best-practice: always specify a reason for skipping a test.
JUnit best practices: same package, separate directories