or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $1.31 Gift Card
Trade in
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

 

JUnit Recipes: Practical Methods for Programmer Testing [Paperback]

J B Rainsberger , Scott Stirling
4.6 out of 5 stars  See all reviews (23 customer reviews)

List Price: $49.95
Price: $34.80 & FREE Shipping. Details
You Save: $15.15 (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 6 left in stock (more on the way).
Ships from and sold by Amazon.com. Gift-wrap available.
Want it tomorrow, May 22? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Paperback $34.80  
Rent Your Textbooks
Save up to 70% when you rent your textbooks on Amazon. Keep your textbook rentals for a semester and rental return shipping is free.

Book Description

July 15, 2004 1932394230 978-1932394238
When testing becomes a developer's habit good things tend to happen--good productivity, good code, and good job satisfaction. If you want some of that, there's no better way to start your testing habit, nor to continue feeding it, than with" JUnit Recipes," In this book you will find one hundred and thirty-seven solutions to a range of problems, from simple to complex, selected for you by an experienced developer and master tester. Each recipe follows the same organization giving you the problem and its background before discussing your options in solving it.
JUnit - the unit testing framework for Java - is simple to use, but some code can be tricky to test. When you're facing such code you will be glad to have this book. It is a how-to reference full of practical advice on all issues of testing, from how to name your test case classes to how to test complicated J2EE applications. Its valuable advice includes side matters that can have a big payoff, like how to organize your test data or how to manage expensive test resources.
What's Inside:
- Getting started with JUnit
- Recipes for:
servlets
JSPs
EJBs
Database code
much more
- Difficult-to-test designs, and how to fix them
- How testing saves time
- Choose a JUnit extension:
HTMLUnit
XMLUnit
ServletUnit
EasyMock
and more!

Frequently Bought Together

JUnit Recipes: Practical Methods for Programmer Testing + JUnit in Action, Second Edition + Effective Java (2nd Edition)
Price for all three: $104.44

Buy the selected items together


Editorial Reviews

Review

"Very comprehensive...Highly Recommended." -- C Vu, Journal of ACCU

About the Author

Rainsberger is a deeloper and consultant who has been a leader in JUnit community since 2001.


Stirling has worked as a technical support and QA engineer for JRun since Allaire acquired the JRun product.

Product Details

  • Paperback: 721 pages
  • Publisher: Manning Publications (July 15, 2004)
  • Language: English
  • ISBN-10: 1932394230
  • ISBN-13: 978-1932394238
  • Product Dimensions: 7.8 x 1.6 x 9.3 inches
  • Shipping Weight: 2.5 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (23 customer reviews)
  • Amazon Best Sellers Rank: #149,521 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

4.6 out of 5 stars
(23)
4.6 out of 5 stars
Most Helpful Customer Reviews
25 of 25 people found the following review helpful
5.0 out of 5 stars A wonderful compendium of JUnit tips and tricks August 6, 2004
Format:Paperback
J. B. Rainsberger's JUnit Recipes is a wonderful compendium of tips and tricks that can quickly take anyone from novice to expert at JUnit. The organization of the book should make it appealing to unit-testing programmers of all levels. Early chapters are highly introductory, covering the installation and first uses of JUnit. Later chapters cover testing of JDBC, Enterprise Java Beans, XML, and more.

JUnit Recipes includes the best discussions I've read on how to test database applications and on the complicated art of managing test data. This is probably not a book you will read every chapter of. In my programming, for example, I don't use EJB so I only skimmed that chapter. But at over 700 pages is much more of an encyclopedia of wonderful testing techniques than a book that is meant to be read cover to cover. As its title implies, JUnit Recipes is a cookbook of ideas that will allow you to serve up better, and better-tested, applications.
Comment | 
Was this review helpful to you?
17 of 17 people found the following review helpful
Format:Paperback
This isn't necessarily the best introduction for absolute beginners (I would recommend /Pragmatic Unit Testing/ for that), but it is required reading for server-side Java, as most other reviewers have pointed out. But it's more than that--it's one of those rare computer books that transcends its subject matter. Why? Because it can make you a better programmer. While some of the credit can rightly be given to unit testing and Test-Driven Development in general, Rainsberger's book makes you /see/ better ways to write and refactor your code. The breadth and depth of examples is astonishing--he convincingly shatters "but it's too hard to test that" arguments with well-researched, non-trivial examples. In fact, I'd say that this is almost a better J2EE tutorial than most books about J2EE proper.

I'm withholding a star for one reason: the book doesn't cover GUI testing tools like Jemmy, JFCUnit, or Abbot/Costello. These JUnit extensions are ripe for a book with this depth; it's just too bad that this couldn't be that book. Other than that, I find that I turn to Rainsberger's book far more often than any other testing book or online reference.
Comment | 
Was this review helpful to you?
23 of 25 people found the following review helpful
2.0 out of 5 stars Uses JUnit 3.8 - dated material May 31, 2009
Format:Paperback
This is a good book. It was very important when it came out. It is dated however and we need a new book on the subject since JUnit is up to version 4.6 as of this writing. Following examples from this book from the start you would want JUnit 3.8 to avoid the confusion. Then you would have to learn the differences between 3.8 and 4.6 which are substantial. Where have all the programmers gone? Books use to be up to date, now we are stuck with many 5 year old books with reviews from 2004. This does not keep programmers informed and secure in their jobs. Time for a new updated edition on this one to make it truly useful.
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars Great book
This is a good book for both beginners and professionals. The recipes give detailed answers in a "how to do" format.
Published on March 21, 2010 by Raghavendra Joshi
5.0 out of 5 stars Straightforward informative, all stuff, no stuffing
This is the JUnit book for you if you're looking into JUnit and basically get the idea - there's frameworks out there which will run tests that you write and JUnit is one of them-... Read more
Published on November 13, 2008 by mathboy
5.0 out of 5 stars More than just recipes
This is a readable, practical, and deep book. It's one of those books which teaches or refreshes Java and OO theory and practice as you read. I am also reading it for pleasure!
Published on October 9, 2007 by Malcolm Gorman
5.0 out of 5 stars The Best Programming Book I know
This is a great book. It is directed at users of JUnit, the Java unit testing framework. But in my mind the book gives sound advice for solving your programming problems in... Read more
Published on March 8, 2007 by catawampus
5.0 out of 5 stars Excellent coverage of advanced unit testing
Rainsberger does a very good job of detailing the techniques to unit test difficult code; including xml, ejb, servlets, jsps etc.
Published on January 18, 2006 by Barry
4.0 out of 5 stars Required reading for using Java+J2EE+JUnit in the real world
This review also appears on StickyMinds at http://www.stickyminds.com/s.asp?F=S767_BOOK_4

JUnit Recipes is a comprehensive tome of practical methods and techniques for... Read more
Published on November 18, 2005 by Brad Appleton
5.0 out of 5 stars Great reference book
After you've mastered the basics of JUnit, this book is the book to get.

However, even if you're new to JUnit, this is still an excellent book to get, as the first few... Read more
Published on August 4, 2005 by Kenrick Chien
4.0 out of 5 stars Tasty Morsels from Rainsberger
This thick volume (700 pages including good references and reading list) is aimed at three groups: Java developers in general, JUnit users, and lastly software testers. Read more
Published on February 28, 2005 by Mr P R Morgan
4.0 out of 5 stars put it on your desk
A JUnit monster book! Detail after detail after detail... Such a amazing thing to see some many tips bounded together. Read more
Published on February 24, 2005 by mingdong he
5.0 out of 5 stars Another Great JUnit Book!
What can I say? JUnit Recipes is a great book among great books on the subject of Test-driven Development. J.B. Read more
Published on February 21, 2005 by Carlos Valcarcel
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

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 



So You'd Like to...


Create a guide


Look for Similar Items by Category