I just read JUnit Recipes, an excellent new book on testing with JUnit by J.B. Rainsberger. I found this book very readable and am looking forward to try out some of the recipes on my current project. The book does not attempt to teach Test-Driven Development instead it focuses purely on testing patterns - different ways to apply JUnit to object and system testing - including examples of how to use JUnit extensions and specialised assertions from other XUnit projects, such as XmlUnit. The book contains many patterns that will be familiar to TDD practitioners and so will be a handy reference book for teams using JUnit.
I learned TDD at Connextra (the cradle of Mock Objects) back in 2000 when Mocks were coded by hand before mock generators and dynamic mocks were available. What I will be taking away from this book is ways of writing tests without mocks.
Recent Comments