This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

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
Rancher

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

John.
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Creating Test Classes/Cases