dcsimg
Doubt in Junit....
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vijay_Kumar
Posted On:   Tuesday, April 30, 2002 07:03 AM

i need to develop test cases using JUNIT 3.7 for the following.i don't how to develop.so pls help me.
1.when clicking next button calender has to show next month, and when clicking previous button calender has to show previous month.
2.for every minute clock has to refresh.
how to do?

Re: Doubt in Junit....

Posted By:   Anonymous  
Posted On:   Wednesday, May 1, 2002 12:44 AM

1. You *can* test GUIs using JUnit. See http://www.xp123.com/xplor/xp0001/index.shtml for a very good example.

2. Where do you see the problem? What exactly do you want to test? What does "clock has to refresh" mean to you?

Re: Doubt in Junit....

Posted By:   Dave_Astels  
Posted On:   Tuesday, April 30, 2002 06:00 PM

The short answer is "You don't". These are user stories and need acceptance/customer/functional tests, not unit tests. These might be done with jUnit., but I'd suggest you have a look at jfcUnit for these tests.

http://sourceforge.net/projects/jfcunit/

Unit tests are lower level. For example you would have a suite of unit tests for your Calander class... i.e. not your calendar application.

Dave

About | Sitemap | Contact