Chapter 10. Putting It All Together

 

If you always do what you always did, then you will always get what you always got.

 
 --Albert Einstein

We have gone through a lot of theory followed by even more practice. The entire journey was like a speed train and we have hardly had an opportunity to repeat what we learned. There was no time for rest.

The good news is that the time is now. We'll summarize everything we learned and go through TDD best practices. Some of those have already been mentioned, while others will be new.

TDD in a nutshell

Red-green-refactor is the pillar of TDD that wraps it into a short and repeatable cycle. By short, we mean very short. The time dedicated to each phase is often counted in minutes if not seconds. Write a test, see ...

Get Test-Driven Java Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.