Pragmatic Unit Testing in Java with JUnit  
Andy HuntDave Thomas
Average Rating:
   
See Pragmatic Unit Testing in Java with JUnit at Amazon.com
Add to Cart

If you like "Pragmatic Unit Testing in Java with JUnit", you might also like ...


Pragmatic Project Automation: How to Build, Deploy, and Monitor Java Apps

Pragmatic Version Control: Using Subversion (The Pragmatic Starter Kit Series)(2nd Edition)

JUnit Recipes: Practical Methods for Programmer Testing

Head First Java, 2nd Edition

The Pragmatic Programmer: From Journeyman to Master

  Customer Reviews         1-5 of 12  |  NEXT >>       

Add to Cart
2007-06-04
Buyer beware. This book does not reflect the many changes to JUnit implemented in version 4. I found it to be a very good book when it came out four years ago however.
2007-02-17
pragmatic Unit testing in java save a lot of time to debug java code.
2007-02-01
JUnit Testing can really save you a lot of time debugging. This book provides a various way to work with JUnit.
2006-08-15
This is another fine book from the "Pragmatic Programmer" series. If you are doing Java development, but haven't gotten into unit testing yet, this is a great place to start. The book is a quick read - I made it through in two days. The book gives background on why unit testing is important and then tells you how to go about doing it with JUnit. The book has practical advice for the kinds of things to include in unit tests while it finishes with design conciderations for make code easier to test. To get the most out of the book, you need to download the code from the author's web site and work through the exercises. It is great how they have taken a critical topic and made it extremly accessable. I highly recomend it.
2006-07-27
This book is very good for a begginer to unit testing. I like the simple explanation of the diffrent types of unit testing that must be done. This really helps a begginer to make sure that the tests are comphrehensive.

Also it clarifies the intention behind use of mock objects. I would use the consepts in this book as a checklist to make sure the tests are written to cover all types of problems.

I gave 4 star only because it contains toy examples and does not go into too much detail on this very important topic. JUnit Recipes contains more realistic examples.
1-5 of 12   |  NEXT PAGE OF REVIEWS >>

Add to Cart
  Editorial Review           
Learn how to improve your Java coding skills using unit testing. Despite it's name, unit testing is really a coding technique, not a testing technique. Unit testing is done by programmers, for programmers. It's primarily for our benefit: we get improved confidence in our code, better ability to make deadlines, less time spent in the debugger, and less time beating on the code to make it work correctly.

This book shows how to write tests, but more importantly, it goes where other books fear to tread and gives you concrete advice and examples of what to test--the common things that go wrong in all of our programs. Discover the tricky hiding places where bugs breed, and how to catch them using the freely available JUnit framework. It's easy to learn how to think of all the things in your code that are likely to break. We'll show you how with helpful mnemonics, summarized in a handy tip sheet (also available from our website) to help you remember all this stuff.

With this book you will:

Write better code, and take less time to write it

Discover the tricky places where bugs breed

Learn how to think of all the things that could go wrong

Test individual pieces of code without having to include the whole project

Test effectively with the whole team

We'll also cover how to use Mock Objects for testing, how to write high quality test code, and how to use unit testing to improve your design skills. We'll show you frequent "gotchas"--along with the fixes--to save you time when problems come up. We'll show you how with helpful mnemonics, summarized in a handy tip sheet (also available from our website).

But the best part is that you don't need a sweeping mandate to change your whole team or your whole company. You don't need to adopt Extreme Programming or Test-Driven Development, or change your development process in order to reap the proven benefits of unit testing. You can start unit testing, the pragmatic way, right away.

Other Pragmatic Programmer books:

Pragmatic Project Automation: How to Build, Deploy, and Monitor Java Applications (Mike Clark)
Pragmatic Unit Testing in C# with NUnit (Andy Hunt and Dave Thomas)
Pragmatic Version Control using CVS (Dave Thomas and Andy Hunt)



If you like "Pragmatic Unit Testing in Java with JUnit", you might also like ...


Pragmatic Project Automation: How to Build, Deploy, and Monitor Java Apps

Pragmatic Version Control: Using Subversion (The Pragmatic Starter Kit Series)(2nd Edition)

JUnit Recipes: Practical Methods for Programmer Testing

Head First Java, 2nd Edition

The Pragmatic Programmer: From Journeyman to Master