• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

JUnit tutorial for beginner

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am newbie to a JUnit testing. I require to know to it for some testing activities which is part of build procedure. Presently I have no knowledge of JUnit. Could you please guide me for any good tutorial/documentation/source of e-books covering the basics of JUnit? I did a Google but was not worth in that aspect?
One more addition could you please tell me how ANT (I know basics of it) and JUnit are releated? Thanks to all in advance. Waiting for an aspiring response from your side.

Regards,
Bhaskar
 
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'm not sure what you're looking for if the top Google hits wasn't it--there are dozens of tutorials and several books specifically targeting JUnit. Maybe you could be more specific?

Ant and JUnit aren't related at all, except that you can run JUnit tests from Ant via the JUnit task.
 
Bhaskar Mukhejee
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi David,

Thanks for the reply. Google shown me links of tutorials most of them I encountered was not full I am looking for a complete "general" tutorial for JUnit on purely learning basis, If you could provide. Thanks for giving the 2nd option.

Regards,
Bhaskar
 
author & internet detective
Posts: 41775
887
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
The good online tutorials show up early in the search listings. Many of them cover a high level or test code without dependencies.

For more information an actual book is useful. "Test Driven", "JUnit Recipes" and "JUnit in Action" are all good for seeing how to test different types of code.
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are lot of guides out there in the web. A basic guide.
Article on Junit4 from IBM.
 
Let nothing stop you! Not even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic