-
Notifications
You must be signed in to change notification settings - Fork 64
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
Implement VerificationMode times #49 #174
Implement VerificationMode times #49 #174
Conversation
Hi, I would be willing to merge this PR, since I'm okay with your provided syntax :-) Just some thoughts as I'm not able to have a try myself currently:
but I'm not sure if those are possible, not too hard to implement or discoverable enough for the user. Let me know if you want me to merge it :) |
Hi @MarkusAmshove regarding your suggestion, I believe that P.S: I was also a little concerned about discovery, but it seems IntelliJ doing a good job suggesting |
So to wrap it up, let me know if you want to add these extra features: |
83691ae
to
be463c6
Compare
Alright, I thought that it doesn't work as you said, because I remember trying it out back then :-) Are here any features left from mickito that you would like to add (e.g. Otherwise let me know when you're ready to have it merged :-) |
@MarkusAmshove Please merge this one, I will create separate Pull requests for every feature so we can discuss/merge them individually. |
This is now part of v1.60 |
Description
This PR adds the verification mode
times()
for mock verification described in this issue #49:Verify times 2 on mock that mock.getPerson(1) was called
, we can also add a wide scope verification mode:
Verify mode times(2) on mock that mock.getPerson(1) was called
P.s: I know it doesn't have the best syntax but performance-wise it's the best approach, alternatively we can try to curry the
verify
method but it creates a lot of overhead.Checklist
AUTHORS
file, if it wasn't already present.