wood burning stoves 2.0*
The moose likes Book Reviews and the fly likes Test Driven: TDD and Acceptance TDD for Java Developers by Lasse Koskela Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Books » Book Reviews
Bookmark "Test Driven: TDD and Acceptance TDD for Java Developers by Lasse Koskela" Watch "Test Driven: TDD and Acceptance TDD for Java Developers by Lasse Koskela" New topic
Author

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

Book Review Team
Bartender

Joined: Feb 15, 2002
Posts: 932
<pre>Author/s : Lasse Koskela
Publisher : Manning
Category : Miscellaneous Java
Review by : Jeanne Boyarsky
Rating : 10 horseshoes
</pre>
"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

Joined: Aug 26, 2006
Posts: 4968
    
    1

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Test Driven: TDD and Acceptance TDD for Java Developers by Lasse Koskela
 
Similar Threads
Test-Driven Development by Example by Kent Beck
Contributing to Eclipse-Principles, Patterns, and Plug-Ins by Erich Gamma, Kent Beck
Unit Testing in Java by Johannes Link, Peter Fr´┐Żhlich
JUnit Recipes: Practical Methods for Programmer Testing by J.B.Rainsberger, et al
Test Driven Development: A Practical Guide by David Astels