• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

junit examples

 
PrasannaKumar Sathiyanantham
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys can you provide me some junit examples link and a good junit book with the latest release of junit covered? please
 
Travis Hein
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The junit cookbook is pretty good.

http://junit.sourceforge.net/

Most of my use is to use the JUnit 1.4 annotations, which works on any method, such as maybe one in your class, instead of needing to create a separate class that extends their test case, for example.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34850
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Test Driven" uses JUnit 4. Not the very latest version of course, but that only matters for advanced features. The absolute latest hasn't been published yet. "JUnit in Action" second edition is likely more recent. It prints in April and is available for PDF purchase now. Of course, it won't be the latest once it prints.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic