Junit Testing

I have seen junit on its website and read it, im still not sure how do i use it
if i have a program application. what kind of functions should i test for.
sample codes, desc, examples would be good, thanks.
jedistarAsked:
Who is Participating?
 
sciuriwareCommented:
You should test a class.
A good approach is: download ECLIPSE and use the function JUNIT creation.
You indicate a class of yours and it builds a test class in which you only have to add the fine testing.
Easy living.

;JOOP!
0
 
hoomanvCommented:
search the web, you'll find a lot about Junit
http://www.google.com/search?q=junit%20tutorial
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
jedistarAuthor Commented:
im using netbeans

ok i build a test class, what do i need to test?
how do i test it?
0
 
jedistarAuthor Commented:
still not helpin
0
 
Mayank SAssociate Director - Product EngineeringCommented:
>> ok i build a test class, what do i need to test?

Right-click on your project and say JUnit -> Generate test cases
0
 
Mayank SAssociate Director - Product EngineeringCommented:
This is a Junit on Netbeans sample:

http://www.fuzzylizard.com/archives/2005/09/22/631/
0
 
jedistarAuthor Commented:
what happens if i use "create junit tests" in netbeans?
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Yes, that's what I meant. Sorry haven't worked on Netbeans since long :) so I forgot the menu-item's text.
0
 
jedistarAuthor Commented:
cool what does that do exactly and how it helps
0
 
jedistarAuthor Commented:
i did that, and all my tests failed, any idea?
0
 
jedistarAuthor Commented:
when netbean auto creates the test classes for me, i remove the fail() and what else should i do
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.