24 used & new from $30.53

Have one to sell? Sell yours here
 
 
JUnit Recipes: Practical Methods for Programmer Testing
 
See larger image
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here.
 
  

JUnit Recipes: Practical Methods for Programmer Testing (Paperback)

~ (Author)
4.6 out of 5 stars  See all reviews (22 customer reviews)


Available from these sellers.


9 new from $45.00 15 used from $30.53

Customers Who Bought This Item Also Bought

JUnit in Action

JUnit in Action

by Vincent Massol
4.5 out of 5 stars (20)  $26.37
Test Driven: Practical TDD and Acceptance TDD for Java Developers

Test Driven: Practical TDD and Acceptance TDD for Java Developers

by Lasse Koskela
3.9 out of 5 stars (16)  $29.69
Ant in Action: Covers Ant 1.7 (Manning)

Ant in Action: Covers Ant 1.7 (Manning)

by Steve Loughran
4.3 out of 5 stars (10)  $31.49
Pragmatic Unit Testing in Java with JUnit

Pragmatic Unit Testing in Java with JUnit

by Dave Thomas
4.3 out of 5 stars (11)  $13.80
JUnit Pocket Guide

JUnit Pocket Guide

by Kent Beck
4.2 out of 5 stars (4)  $9.95
Explore similar items

Editorial Reviews

Review

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


Product Description

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!


Product Details

  • Paperback: 752 pages
  • Publisher: Manning Publications; illustrated edition edition (July 15, 2004)
  • Language: English
  • ISBN-10: 1932394230
  • ISBN-13: 978-1932394238
  • Product Dimensions: 9.1 x 7.4 x 1.6 inches
  • Shipping Weight: 2.5 pounds
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (22 customer reviews)
  • Amazon.com Sales Rank: #263,653 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #79 in  Books > Computers & Internet > Programming > Software Design, Testing & Engineering > Testing

More About the Author

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

Visit Amazon's J. B. Rainsberger Page

What Do Customers Ultimately Buy After Viewing This Item?

JUnit Recipes: Practical Methods for Programmer Testing
56% buy the item featured on this page:
JUnit Recipes: Practical Methods for Programmer Testing 4.6 out of 5 stars (22)
JUnit in Action
16% buy
JUnit in Action 4.5 out of 5 stars (20)
$26.37
Test Driven: Practical TDD and Acceptance TDD for Java Developers
15% buy
Test Driven: Practical TDD and Acceptance TDD for Java Developers 3.9 out of 5 stars (16)
$29.69
Pragmatic Unit Testing in Java with JUnit
7% buy
Pragmatic Unit Testing in Java with JUnit 4.3 out of 5 stars (11)
$13.80

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(7)
(3)

Your tags: Add your first tag
 

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

 

Customer Reviews

22 Reviews
5 star:
 (16)
4 star:
 (5)
3 star:    (0)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.6 out of 5 stars (22 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
22 of 22 people found the following review helpful:
5.0 out of 5 stars A wonderful compendium of JUnit tips and tricks, August 6, 2004
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 Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
12 of 12 people found the following review helpful:
4.0 out of 5 stars Put this next to Knuth and The Gang of Four on your bookshelf, December 30, 2005
By Jason R. Tibbetts (Falls Church, VA USA) - See all my reviews
(REAL NAME)   
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 Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
14 of 15 people found the following review helpful:
5.0 out of 5 stars Tasty recipes for success, September 21, 2004
By Ernest Friedman-Hill "JavaRanch Sheriff" (Gaithersburg, MD United States) - See all my reviews
(REAL NAME)      
Sometimes the tiniest things are the most useful. Nails, screws, paperclips and post-its are all small, simple objects that are used a thousand different ways. So it is with JUnit -- a small and really very simple testing tool that can find its way into every corner of your Java development.

Rainsberger's book is a compendium of those thousand ways that JUnit can be used (well, OK, more like 130 ways). Each recipe starts with a solid motivation and includes a worthwhile discussion afterwards. You quickly realize that the author is sharing hard-won experience with you on every page. There are sections on testing standalone code of every description, as well as detailed sections on testing servlets, EJBs, and other less tractable components.

I've been using JUnit for years, but I picked up quite a few useful tips from this enjoyable book. Highly recommended.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

2.0 out of 5 stars Uses JUnit 3.8 - dated material
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. Read more
Published 5 months ago by grandpiano_57

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 12 months ago 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... 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... 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

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.



Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.