File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Testing and the fly likes regarding junit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "regarding junit" Watch "regarding junit" New topic

regarding junit

san ch
Ranch Hand

Joined: Oct 18, 2004
Posts: 68

Iam new to using junit....i need a small clearification....i jus have a beginner knowledge in java .....can i learn junit directly or is it mandatory to have good acquaintance with core java before learning junit

thanks in advance
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
I wouldn't consider it a pre-requisite to have "good" knowledge of Java before starting to use JUnit. You do have to know some Java, of course, since JUnit tests are Java code but the vast majority of JUnit test classes tend to be really simple (as in they don't use many "advanced" language features).

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
san ch
Ranch Hand

Joined: Oct 18, 2004
Posts: 68
Hi Lasse Koskela

Thank you for the reply...ill search for some online resources on junit..i have been looking at you once again
San ch
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
It is good to see a beginner, learning with testing as a forethought rather than an afterthought. You may like to search out Test-Driven Development on google.
I also recommend that you learn how to build and deliver you code with ANT sooner rather than later.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
You might want to take a look at the book "Agile Java: Crafting Code with Test-Driven Development".

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: regarding junit
It's not a secret anymore!