• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JUnit tutorial for beginner

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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: 40211
816
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • 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: 4107
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are lot of guides out there in the web. A basic guide.
Article on Junit4 from IBM.
 
Enjoy the full beauty of the english language. Embedded in this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic