Forum Discussion
torstenreinhard
15 years agoOccasional Contributor
no, sorry that´s not what I need....
In normal cases singletons don´t have "destroy", "re-initialize" methods - so I´m not able to "setup" or "tearDown" them.
I would suggest to start a new VM always (or at least to have a switch in the properties to be able to do that) - as a JUnit Testrunner does.
Maybe there´s a "hook-method" in your API ?
Thanx, Torsten
In normal cases singletons don´t have "destroy", "re-initialize" methods - so I´m not able to "setup" or "tearDown" them.
I would suggest to start a new VM always (or at least to have a switch in the properties to be able to do that) - as a JUnit Testrunner does.
Maybe there´s a "hook-method" in your API ?
Thanx, Torsten
Related Content
- 5 years agostudveags