Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Good books on Junit, JMock

 
Aravind Arumugam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've never really used JUnit, but really need to get up with the speed.
So I need a book that explains sound basics & concepts with good hands-on

I checked the previous threads and found the following books,

"JUnit in Action",
"Test Driven Development: A Practical Guide",
Kent Beck's "Test Driven Design by Example",
Hunt's and Thomas' "Pragmatic Unit Testing",
Link's "Unit Testing in Java", and
Derek Lane's O'Reilly title "JUnit: the Definitive Guide"

I'm really confused which one book to choose.
Please suggest a nice book with sound concepts and hands on that brings the reader up to speed.

My another question is,

Can somebody provide me with links or good books for learning JMock?

i have gone to JMock website, but just checkin if anybody have come across some really cool links/books that would help beginners with some hands on?

Thanks
Aravind.
 
Rob Spoor
Sheriff
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Testing forum.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know of any books that cover JMock, but IMO you don't really need a book for that. (I've mostly used Mockito and EasyMock anyway.)

Which book you get may also depend on which version of JUnit you're targeting--I found JUnit in Action quite good, but that was quite awhile ago.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34378
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aravind,
I think it's more important to choose a bug that covers the "proper" version of JUnit. A lot changed between JUnit 3.8 and 4.0. Assuming you are using 4.0, it's better to read a book that does as well.

"Test Driven - Practical TDD and Acceptance TDD for Java Developers" uses JUnit 4.0. "JUnit Recipes" version 2 (not yet published) does as well.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Book? Your Freudian slip is showing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic