| help | account  


JUnit Recipes
J.B. Rainsberger
Manning Publications, Paperback, Published July 2004, 721 pages, ISBN 1932394230
List Price: $49.95
Our Price: $29.95
You Save: $20.00 (40% Off)


FREE Shipping on Orders over $40!*
Availability: Out-Of-Stock

Customer Reviews: 1     Average Customer Rating:

Write a Review and tell the world about this title!

People who purchase this book frequently purchase:

Books on similar topics, in best-seller order:Books from the same publisher, in best-seller order:

JUnit Recipes is a cookbook for building better Java applications. It contains 150 recipes for better code, using JUnit as both a testing tool and a design tool. Each recipe is a short, self-contained article that answers your questions about how to use JUnit, from taking your first steps all the way to testing complex J2EE applications, including servlets, JSPs, EJBs and JMS components.

If you want to use JUnit on a new project, this book tells you how to design easy-to-test applications, helping you avoid the design pitfalls of many legacy applications.

If you need to start testing an existing application, you will find recipes dedicated to testing even the most difficult-to-test legacy components, like EJBs and JDBC code.

The book also discusses many extensions to the JUnit framework, including JUnit-addons, HTMLUnit, XMLUnit, ServletUnit, DBUnit, JUnitX and EasyMock, choosing each to do the job it does best.

These recipes have been collected over the past several years from a variety of Java and J2EE projects, showing you what to do, how to do it, when to do it, and why. Test-Driven Design and Agile Software Development practitioners will recognize much of the book?s advice as following the principles of simple, flexible, supple design.

Table of Contents

Part 1: Building Blocks
Chapter 1: Fundamentals
Chapter 2: Elementary Tests
Chapter 3: Organizing and Building JUnit Tests
Chapter 4: Managing Test Suites
Chapter 5: Working with Test Data
Chapter 6: Running JUnit Tests
Chapter 7: Reporting JUnit Results
Chapter 8: Troubleshooting

Part 2: JUnit and Frameworks
Chapter 9: Testing and XML
Chapter 10: Testing and JDBC
Chapter 11: Testing Enterprise JavaBeans
Chapter 12: Testing Web Components
Chapter 13: Testing J2EE Applications

Part 3: More Testing Techniques
Chapter 14: Testing Design Patterns
Chapter 15: GSBase
Chapter 16: JUnit-addons
Chapter 17: Odds and Ends

Appendix A: Complete Solutions
Appendix B: Essays on Testing
Appendix C: Reading List

About the Authors

J. B. Rainsberger has been a leader in the JUnit community since 2001 and a regular contributor to JUnit Yahoo! group. His popular tutorial JUnit: A Starter Guide is read by thousands of new JUnit users each month and is required reading for college and university Computer Science courses around the world. Joe lives in Toronto, Ontario.

Scott Stirling is a Senior Software Engineer on the Platform and Tools team at Workscape, Inc. in Framingham, MA. He has been active in the JUnit community since 2000 and has contributed code to the Jakarta Ant task.


Customer Reviews

Customer Reviews: 1     Average Customer Rating:

Aug 6, 2004     Mike Cohn from Boulder, CO
A wonderful compendium of JUnit tips and tricks
J. B. Rainsbergers 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 Ive 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 dont 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.



Forgot your password?
FAQs
Shipping Options
Returns
Your Orders
Your Account