• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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: 41415
854
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: 4109
72
Hibernate Fedora Chrome
  • 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.
 
Do Re Mi Fa So La Tiny Ad
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic