my dog learned polymorphism*
The moose likes Java in General and the fly likes Help please with complex JUNIT test cases across classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Help please with complex JUNIT test cases across classes" Watch "Help please with complex JUNIT test cases across classes" New topic
Author

Help please with complex JUNIT test cases across classes

Hussein Patwa
Greenhorn

Joined: May 07, 2008
Posts: 5
Hello,

I have been thrown rather into the deep end and asked to debug and create test cases for an application. I'm completely new to JUNIT, and I'll be honest my Java is not that great beyond the basics. I know the methods I want to test, and the results I want to prove. However, it's the coding that is the problem for me. I learn best by example rather than by explanation, and I also suspect the fact I'm partially sighted is not helping issues when it comes to spotting errors. The application itself is at Index of /trending

That folder also contains my checklist of things to test and an explanation of the classes in the application. I've looked for quite a while at JUNIT examples, and even had someone send me an application with test cases, but I was having real problems relating any of it to my application. It's not helping that to test any of the classes seems to require taking arguements and items (arrays, files, ints, etc) from other classes, and here I'm totally lost.

I'm not asking for someone to do this all for me, but I'd be really grateful if someone could possibly take a look at this and perhaps get me started on the right track with a couple of examples with my application. Thanks very much, Hussein
Paul Michael
Ranch Hand

Joined: Jul 02, 2001
Posts: 697
Where can we see this "trending" folder of yours?

Thanks.


SCJP 1.2 (89%), SCWCD 1.3 (94%), IBM 486 (90%), SCJA Beta (96%), SCEA (91% / 77%), SCEA 5 P1 (77%), SCBCD 5 (85%)
Hussein Patwa
Greenhorn

Joined: May 07, 2008
Posts: 5
I'm so sorry! The html tags musthave been stripped at some point.

www.patwanet.co.uk/trending

Thanks again for your time.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help please with complex JUNIT test cases across classes
 
Similar Threads
Help please with complex JUNIT test cases across classes
What all skills are required for Java White box testing?
unit testing with abbot and junit
EAR Automated testing
Junit test case for webservice consumed using weblogic