-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
Consecutive calls with expectation about args #1193
Comments
I am closing this as duplicate, since #992 reported it earlier. |
So you closed this as a dupe of #992 but then you closed that because now the behavior is documented? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@mir3z Have you found solution for this? I am also trying to do the same thing over here |
I want to create a mock with the following expectations:
When I'm trying to do:
I see error
Defining a stub by invoking "stub.onCall(...).withArgs(...)" is not supported. Use "stub.withArgs(...).onCall(...)" to define sequential behavior for calls with certain arguments.
but if I follow the advice I'm unable to set different args and response for consecutive calls.
The text was updated successfully, but these errors were encountered: