Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Testing a java program  RSS feed

 
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: 1046
2
IntelliJ IDE Java Spring
  • 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
Boost this thread!