What’s Next?
We have a minimal user interface that we’ve built using TDD. While we covered only a small part of building Swing applications, you should have enough information and experience now to get you started. Testing other Swing constructs will be similar. When in doubt, build the Swing code in a scratch area and get it to work. Then figure out how to test it. Finally, delete the scratch code and start over again, tests first.
In fact, you have now learned most of the tools you’ll need in order to understand how to tackle TDD. We’ll ultimately wrap up and summarize some of the more important test-driven development concepts. But before we do that, let’s take a break from coding and meet Jerry Jackson, a veteran software developer. In the next installment, I’ll interview Jerry about his experiences with TDD at Cassatt.