Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JUnit

 
Surya Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to testing using JUnit. I have the following questions:
a] Which is the right book that covers the whole of JUnit testing that includes J2EE?
b] Where can i find the necessary resources in the net?

Regards
Prem
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there is one single book that is best. I recommend at least two books: Pragmatic Unit Testing, and JUnit Recipes. There are other books on the subject worth reading including Junit In Action, and Unit Testing in Java to name but a couple, but I consider Pragmatic Unit Testing to be a must read for the essentials, and JUnit Recipes to be the single best book covering J2EE.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What Jason said!
 
Surya Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got 'JUnit in Action', bcos its seems up to the point. What do you think it lacks comparing to te JUnit Recipes?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34671
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surya,
JUnit Recipes has more patterns/techniques and common issues than JUnit in Action. I found both to be valuable reads though. JUnit Recipes also covers more topics, such as XML testing. You can see the JUnit Recipes table of contents to compare it to the book you have.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And just for completeness, "Unit Testing in Java" discusses some topics that the other two are missing, such as testing Swing GUIs and concurrent code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic