[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Junit Testing

Posted on 2006-05-18
12
Medium Priority
?
197 Views
Last Modified: 2010-03-31
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.
0
Comment
Question by:jedistar
  • 6
  • 3
  • 2
  • +1
12 Comments
 
LVL 24

Expert Comment

by:sciuriware
ID: 16715492
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
 
LVL 14

Expert Comment

by:hoomanv
ID: 16715903
search the web, you'll find a lot about Junit
http://www.google.com/search?q=junit%20tutorial
0
 

Author Comment

by:jedistar
ID: 16716827
im using netbeans

ok i build a test class, what do i need to test?
how do i test it?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 14

Accepted Solution

by:
hoomanv earned 1600 total points
ID: 16716963
0
 

Author Comment

by:jedistar
ID: 16717045
still not helpin
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 16717595
>> ok i build a test class, what do i need to test?

Right-click on your project and say JUnit -> Generate test cases
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 16717609
This is a Junit on Netbeans sample:

http://www.fuzzylizard.com/archives/2005/09/22/631/
0
 

Author Comment

by:jedistar
ID: 16717783
what happens if i use "create junit tests" in netbeans?
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 16717818
Yes, that's what I meant. Sorry haven't worked on Netbeans since long :) so I forgot the menu-item's text.
0
 

Author Comment

by:jedistar
ID: 16721172
cool what does that do exactly and how it helps
0
 

Author Comment

by:jedistar
ID: 16724357
i did that, and all my tests failed, any idea?
0
 

Author Comment

by:jedistar
ID: 16724887
when netbean auto creates the test classes for me, i remove the fail() and what else should i do
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month18 days, 18 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question