Closed wangjuns closed 8 years ago
Please provide the following information:
@Mock(minInvocations = x) is not working, I think blow code has bug at class mockit.internal.mockups.MockState
@Mock(minInvocations = x)
mockit.internal.mockups.MockState
boolean update() { if (proceedingInvocation != null) { MockInvocation invocation = proceedingInvocation.get(); if (invocation != null && invocation.proceeding) { invocation.proceeding = false; return false; } } int timesInvoked; synchronized (invocationCountLock) { timesInvoked = ++invocationCount; } verifyUnexpectedInvocation(timesInvoked); return true; }
The code just call verifyUnexpectedInvocation(), but not verifyUnexpectedInvocation()
verifyUnexpectedInvocation()
I would need to see an example test where it doesn't work. Can you provide that?
Please provide the following information:
@Mock(minInvocations = x)
is not working, I think blow code has bug at classmockit.internal.mockups.MockState
The code just call
verifyUnexpectedInvocation()
, but notverifyUnexpectedInvocation()