A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
Testing the application with "public static void main" method
Joined: Apr 12, 2005
Feb 20, 2013 05:37:40
Is it too wrong to
an application with a bunch of classes, each one with its "public static void main" method?
SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
author & internet detective
Joined: May 26, 2003
Feb 20, 2013 20:14:34
Why does each one have a main method?
I don't think it is bad to test a main method if it exists "in the real code." Like when developing a command line utility. But I wouldn't add a main method for the purposes of testing. That's what
OCA 8 book
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
subject: Testing the application with "public static void main" method
signature of main() method....
a question in Chapter One of RHE's book
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015