Tests are the Programmer’s Stone, transmuting fear into boredom.
Kent Beck, Test First Development
This chapter covers
We now dive deeper by introducing a real-life component and testing it. In this chapter, we implement a small application using the Controller design pattern. We then test every part of the application using JUnit. We also look at JUnit best practices when writing and organizing your tests.