Summary
This chapter covered the JUnit best practices and explained the underlying principles. The best practices are writing meaningful tests, automating unit tests, test configuration, working with assertions, exception handling in test cases, identifying test smells, and refactoring test smells.
Now you will be able to write clean and maintainable test cases.