O'Reilly logo

Test Driven: Practical TDD and Acceptance TDD 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 4. Concepts and patterns for TDD

I remember growing up with television, from the time it was just a test pattern, with maybe a little bit of programming once in a while.

Francis Ford Coppola

In chapters 2 and 3, we saw test-driven development being used for developing a template engine. That example was intentionally what many would consider a trivial case—a sort of “ideal” scenario with no tough cookies to crack. In this chapter, we’ll study different patterns and techniques that a seasoned test-driven developer can pull out from their toolbox when the going gets tough. These patterns range from design patterns that we can apply to our production code for making it more testable to different ways of organizing and implementing our ...

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