Friday, February 18, 2005 09:40 AM
I am newbee to JUnit. I am trying to test a method from a class where I need to do lot of env specific (like logger, database connection etc) initialisations in it's constructor.
I don't want to initialize all those (by creating the object, may be using 'new')for testing a small piece of code
what is the best way to acheive it?
Thanks in advance.
Re: JUnit: Testing a method alone, without object
Monday, February 21, 2005 01:00 PM