All,
I have a problem which I found in eclipse, but not in Netbeans. I hope you can help me find a workaround for this.
I have a lot of
test cases that requires a singleton the created for the duration of each test case. When I run the test case on its own, it is fine.
Problem is, in Netbeans each test case is executed as a unit. Therefore the singleton instance is not shared from one test case to another - which I reckon is the correct behavior.
However, in Eclipse the test case fails because the singleton implementation is shared between one test case and another.
Is there away to tell Eclipse to run the test cases one by one?
Or, is there a way to enforce this behavior so that my test cases is not IDE-dependent?
Thanks for any help.