I have unit test case where I am using JMockit with expectations. Now when I run the test case alone, the test case passes. But when I run all test cases collectively, I get the:
expected exactly 1 time, already invoked...
error. I feel that some configuration or states set in jmock by previous test cases has not cleared.
Has anyone experienced something similar?
Thanks