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 Testing a java program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Testing a java program" Watch "Testing a java program" New topic

Testing a java program

Jag Sharma

Joined: Nov 09, 2001
Posts: 10
Is it better to test a class using the main() in the class itself
Is it better to test using a separate test class?
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

It is better to test than to not test.
Everything else is style.

Please ignore post, I have no idea what I am talking about.
I agree. Here's the link:
subject: Testing a java program
It's not a secret anymore!