How do I write a Junit test for my main method in the class
Joined: Aug 01, 2007
Hi, How do I write a Junittest for my main method in the class. It is the only method in the class and as usual returns void. I can't see any side effect also happenning here which will help me test the result.
Joined: Mar 22, 2005
But the main method does something, right? :-)
I'd restructure the code so that all the functional code moves out of the main method into instance methods that return meaningful results. So instead of