File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Creating Test Classes/Cases Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Creating Test Classes/Cases" Watch "Creating Test Classes/Cases" New topic

Creating Test Classes/Cases

Chuck Mondi
Ranch Hand

Joined: Oct 14, 2008
Posts: 31
Can anyone provide information (links, books, etc) that would have valuable information on how to develop tests for your Java code? In reading Head First Java I recall them talking about testing code, really writing your tests first, then your classes and such, but it really isn't illustrated. What defines a good test for your Java code? Any help is appreciated. Thanks.
John de Michele

Joined: Mar 09, 2009
Posts: 600
JUnit can be found at

Garrett Rowe
Ranch Hand

Joined: Jan 17, 2006
Posts: 1296
JavaRanch also has a Testing forum where you can ask specific questions about testing Java code.

Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
I agree. Here's the link:
subject: Creating Test Classes/Cases
It's not a secret anymore!