Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to mark all current invocations on a mock as verified #104

Open
dalewking opened this issue Apr 30, 2024 · 0 comments
Open

Add a way to mark all current invocations on a mock as verified #104

dalewking opened this issue Apr 30, 2024 · 0 comments

Comments

@dalewking
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant