O'Reilly logo

Effective Unit Testing: A guide for Java Developers by Lasse Koskela

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Testable design

 

In this chapter
  • What is testable design?
  • What is untestable design?
  • How to create testable designs

 

In the preface of Implementation Patterns (Addison Wesley Professional, 2007), Kent Beck compares programming to an American TV show called Jeopardy. In the show the host provides answers and the contestants’ job is to guess which question that answer was for. “A short section at the end of a book.” “What is an epilogue?” “Correct.”

Kent makes the analogy to programming and points out that Java provides answers in the form of its language constructs, and the programmer’s job is to figure out what the questions are and which problems are solved by which language construct. He offers the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required