• Post Reply Bookmark Topic Watch Topic
  • New Topic

Test Driven: TDD and Acceptance TDD for Java Developers by Lasse Koskela  RSS feed

Book Review Team
Posts: 962
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<pre>Author/s : Lasse Koskela
Publisher : Manning
Category : Miscellaneous Java
Review by : Jeanne Boyarsky
Rating : 10 horseshoes
"Test Driven" is geared toward Java developers interested in writing better JUnit tests. Despite the title, it is useful whether you want to write test first or test last.

The first part of the book covers the softer aspects of testing such as how to decide what tests to write first and spikes. The rest of the book covers writing tests for common Java components including servlets, data access code and Swing. Examples were for things that we frequently want to test. They included "hard" things such as testing times and threaded code.

I particularly liked the sections on design and testing patterns. There was good coverage of different JUnit extension libraries with examples including dbunit, jmock, easymock, jemmy and abbot. There was also a full chapter on FIT.

I got a sense of "in the trenches" realism from the book. Tradeoffs of techniques were clearing mentioned. The chapter on adopting TDD shows the experience of someone who has done it many times. The section on how to fight resistance really spoke to me.

This is the first book I have read using JUnit 4, which was useful for reading well written tests. While there is an appendix "tutorial" on JUnit 3.8 and 4.0 (two page annotated classes), you really should feel comfortable with one version of JUnit before reading this book. While a few sections pertained to specific technologies, such as Spring, the concepts apply to everyone. I highly recommend this book.

More info at Amazon.com
More info at Amazon.co.uk
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I picked this up, and am quite impressed.

I can't think of a more boring topic. Right up there with 'how to comment your code.' But the author does a good job of making it interesting, and does a good job of covering advanced topics.

I especially like the chapter on testing your Database components, and testing your Hiberante based DAO's. Very little gets written well about testing Hibernate based components.

-Cameron McKenzie
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!