You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tests where the object being tested does a bunch of initialization which can make calls on the mocks any number of times. I then want to test what happens after that using verification, but I have a bunch of unverified calls that took place during that initialization.
What I want is a way to say ok ignore any already made calls that have already taken place. One way that could be done is using reset, but that also removes any mocking that was setup so would require setting up the mocks again.
So I want a way to keep the stubs that have been set up but to ignore any invocations already made. In terms of Mockable that would probably mean removing all invocations from the stubs and clearing out verifiedInvocations.
The text was updated successfully, but these errors were encountered:
I have tests where the object being tested does a bunch of initialization which can make calls on the mocks any number of times. I then want to test what happens after that using verification, but I have a bunch of unverified calls that took place during that initialization.
What I want is a way to say ok ignore any already made calls that have already taken place. One way that could be done is using reset, but that also removes any mocking that was setup so would require setting up the mocks again.
So I want a way to keep the stubs that have been set up but to ignore any invocations already made. In terms of Mockable that would probably mean removing all invocations from the stubs and clearing out verifiedInvocations.
The text was updated successfully, but these errors were encountered: