or
Sign in to turn on 1-Click ordering
More Buying Choices
Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Test Driven: TDD and Acceptance TDD for Java Developers [Paperback]

Lasse Koskela
3.9 out of 5 stars  See all reviews (17 customer reviews)

List Price: $44.99
Price: $31.68 & FREE Shipping. Details
You Save: $13.31 (30%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 12 left in stock (more on the way).
Ships from and sold by Amazon.com. Gift-wrap available.
Free Two-Day Shipping for College Students with Amazon Student

Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

October 19, 2007 1932394850 978-1932394856

In test driven development, you first write an executable test of what your application code must do. Only then do you write the code itself and, with the test spurring you on, you improve your design. In acceptance test driven development (ATDD), you use the same technique to implement product features, benefiting from iterative development, rapid feedback cycles, and better-defined requirements. TDD and its supporting tools and techniques lead to better software faster.

Test Driven brings under one cover practical TDD techniques distilled from several years of community experience. With examples in Java and the Java EE environment, it explores both the techniques and the mindset of TDD and ATDD. It uses carefully chosen examples to illustrate TDD tools and design patterns, not in the abstract but concretely in the context of the technologies you face at work. It is accessible to TDD beginners, and it offers effective and less well known techniques to older TDD hands.

Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.

What's Inside

  • Learn hands-on to test drive Java code
  • How to avoid common TDD adoption pitfalls
  • Acceptance test driven development and the Fit framework
  • How to test Java EE components-Servlets, JSPs, and Spring Controllers
  • Tough issues like multithreaded programs and data access code

Frequently Bought Together

Test Driven: TDD and Acceptance TDD for Java Developers + Clean Code: A Handbook of Agile Software Craftsmanship
Price for both: $67.39

One of these items ships sooner than the other.

Buy the selected items together


Editorial Reviews

About the Author

Lasse Koskela is a methodology specialist at Reaktor Innovations. He started promoting Agile methods in Finland in 2002, ramped up the local Agile Seminars in 2005, and has coached dozens of teams around Europe in agile methods and development practices such as test driven development.


Product Details

  • Paperback: 470 pages
  • Publisher: Manning Publications (October 19, 2007)
  • Language: English
  • ISBN-10: 1932394850
  • ISBN-13: 978-1932394856
  • Product Dimensions: 7.4 x 1.3 x 9.1 inches
  • Shipping Weight: 2.6 pounds (View shipping rates and policies)
  • Average Customer Review: 3.9 out of 5 stars  See all reviews (17 customer reviews)
  • Amazon Best Sellers Rank: #54,596 in Books (See Top 100 in Books)

More About the Author

I'm a consultant and trainer working for a software consulting company in Finland. During my spare time, I tend bar at the JavaRanch (http://www.javaranch.com).

Customer Reviews

3.9 out of 5 stars
(17)
3.9 out of 5 stars
Share your thoughts with other customers
Most Helpful Customer Reviews
19 of 21 people found the following review helpful
5.0 out of 5 stars My new standard reference October 22, 2007
Format:Paperback
Lasse's new book, "Test-driven" is now my standard reference for people who want to know more about TDD. Why? Simply because his new book covers it broad, well and in detail. It's the first book I know which also covers the "Acceptance TDD" part and it was about time!

The book consists of three parts. They are: "TDD Primer", "Specific technologies" and "Acceptance TDD".

The first part contains an overview/big picture on what TDD is and especially how the traditional TDD and A-TDD fit together. The first chapter is probably the best overview explanation I know of TDD, A-TDD and the effect on the quality of the code, the effect of refactoring and how to develop software incrementally in small steps (and why you would actually want to do that). The second chapter then dives into the "how do you do this" question and goes over one example to show concretely, in code, how to do TDD. The third chapter focuses on the refactoring step in the traditional TDD cycle. Without refactoring your design will be a mess, though this step is often hard for new TDDers. The last chapter of part 1 then covers concepts and patterns. Concepts are like the different test strategies for test-driving your code. Other example that's covered here is the problems of legacy code.

The second part of the book tries to give concrete answers to common problems. How to I test-drive x! It starts with web components and moves from there in the database area (or data access code). One chapter about test-driving time related issues and then also the extremely hard problem of test-driving multi-threaded code. This part ends with test-driving Java Swing GUI code (using Jemmy)

The third part of the book is the A-TDD part.
... Read more ›
Comment | 
Was this review helpful to you?
19 of 22 people found the following review helpful
5.0 out of 5 stars may be -the- book on TDD in Java November 2, 2007
Format:Paperback|Amazon Verified Purchase
I've just begun digging into Lasse Koskela's book, Test Driven, but it's already clear that this is the book I will recommend to existing Java programmers for a thorough coverage of TDD. (I'm pointing new Java programmers somewhere else, however. :-))

The text is very well written and engaging. The introductory material, getting developers up to speed on what TDD is and isn't, and how to do it well, is very patient yet not so slow that it's tedious.

The book is well-rounded, and contains information that you're not going to find in the other books on TDD. For example, it includes a good introductory coverage to acceptance testing using FIT/FitNesse. It also includes some recommendations on multithreaded testing, and some practical discussion about the distinctions between unit and integration testing, and what's entailed.

I think Koskela did a good job at surveying the current Java landscape and providing recommendations around the predominant tools/environments. I hope he's able to update the book in a couple years!

Overall, the book has many useful tips throughout, and wraps up with a thorough discussion of what it will take to adopt TDD in an organization. So far it's one of the more enjoyable and useful tech books I've read this year.
Comment | 
Was this review helpful to you?
9 of 9 people found the following review helpful
Format:Paperback
"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.
Comment | 
Was this review helpful to you?
11 of 12 people found the following review helpful
5.0 out of 5 stars TDD and ATDD: a very well-written primer October 7, 2008
Format:Paperback
For the last five years, I have worked for companies that espouse "agile" technologies and development practices. At my last job, the company contracted with ObjectMentor to come in and provide direct training and mentoring as we transitioned our old waterfall process into a shiny new eXtreme Programming (XP) one. We were even so fortunate to have some one-on-one time with Ron Jefferies, Michael Feathers, and Robert Martin to further help up along the path to XP enlightenment. At the time, I was a software architect and largely skeptical of many of the XP practices. Practices like short iterations, collective code ownership, user testing and a planning game were an easy sell to us; the practice of test-first development was not. In fact, in the controversy over whether design and code should be written "test-first" or not, I always sided with folks who felt that architecture should be worked out first, followed by coding it up and then testing. Even though I understood the importance of writing tests to ensure the quality of my code, I still clung to my old waterfall style for actually driving and writing those tests.
Fast forward a number of years to the present day and even though our development practices are very agile, test-first is still not one of those practices. As a champion of unit testing on my team, I happened to come across the book "Test Driven" by Lasse Koskela at book store one day. Thinking that this was just another one of those post-modern XP books (You know the ones that take one of the original XP practices, re-brand it with a new name and then claim to have invented something new?) with a slightly different take on test-first development, I almost didn't give it a second glance.
... Read more ›
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars Great book for learning TDD
TDD and unit testing is something that my company is moving toward. This book helped me learn it quickly and it was also fun. Read more
Published on February 10, 2010 by E. Perkins
1.0 out of 5 stars How about some truly unbiased opinions ...
... instead of fellow authors looking to pump each other's books up?

I read the book, wasn't impressed, and popped it on the shelf to collect dust. Read more
Published on July 1, 2009 by Jim L
1.0 out of 5 stars Not what you expect
I wasn't a big fan of this book really. The first few chapters talk about some TDD and TDD theory which was helpful, but overall the book doesn't really talk too much about... Read more
Published on March 30, 2009 by jacklin10
5.0 out of 5 stars How to do Test Driven Development in Java
If you are interesting in Java TDD with Junit this is your book. Cover different kinds of test depending what are you testing (Dao, logic, threads, etc). Read more
Published on October 30, 2008 by Alvaro Gonzalez Fernandez
4.0 out of 5 stars Useful primer
Very good introduction to TDD. I read this first, and then followed it the Beck's TDD By Example, which was more in depth. Read more
Published on October 11, 2008 by John Wesley Watson
4.0 out of 5 stars Test Test Test
I had been trying out Test Driven Development from past couple of years and found it very interesting. Read more
Published on September 22, 2008 by Umesh Rangappa
1.0 out of 5 stars A disappointing read
As an experienced developer in an XP shop, I am always on the prowl for good books on TDD. Alas, this is not one of them.

The author uses a lot of exclamation points! Read more
Published on September 19, 2008 by J. D. Litwiller
5.0 out of 5 stars This book has already helped introduce several developers I coach to...
Bas has already done a good job outlining the content. I won't repeat that here. Instead I will say that TDD is hard. Read more
Published on August 14, 2008 by Mark Levison
5.0 out of 5 stars Excellent book on TDD in Java
This book is an great resource for Java developers wanting to get started on TDD. It covers the majority of tools and techniques available, along with useful tips and best... Read more
Published on March 29, 2008 by Fabio Lessa
5.0 out of 5 stars Awesome reference for TDD
Great book. I've read Kent Beck's book, but his book is a bit dated these days. I found Test Driven to be a nice, timely refresh of the TDD and refactoring topic. Read more
Published on February 22, 2008 by C. Bartling
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Forums

Have something you'd like to share about this product?
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Search Customer Discussions
Search all Amazon discussions


So You'd Like to...


Create a guide


Look for Similar Items by Category