Tuesday, May 13, 2003 06:48 AM
I was reading an article which says this:...
"JUnit follows a very specific sequence of events when invoking tests.First,it constructs a newinstance of the test case for each test method.Thus,if you have five test
methods,JUnit constructs five instances of your test case.For this reason,instance variables cannot be used to
share state between test methods."
What would be the benefit from contructing a new instance for each test method?