• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Good books on Junit, JMock

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22787
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to our Testing forum.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41914
910
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Book? Your Freudian slip is showing.
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic