Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing a java program

 
Jag Sharma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it better to test a class using the main() in the class itself
OR
Is it better to test using a separate test class?
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is better to test than to not test.
Everything else is style.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic