-
Notifications
You must be signed in to change notification settings - Fork 17
Implement StrictClient that expects a sequence of requests #41
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
Comments
Just thinking, at least some of the behavior could be implemented with the current |
@localheinz did the implementation you use in your project prove useful? you had closed #42 after opening, saying you want to try it out a bit more... |
It worked well in that regard that tests failed when
However, when the |
I'll close this for now. |
thanks. feel free to open it again if you have further ideas. |
Actual Behavior
Currently, when using the
Client
and configuring matchers usingon
()This is fine, but what if we expect a specific sequence of requests to be sent with matching responses? If we use use the
Client
as it is right now, it's of course possible to define such a sequence.However, the order in which request are sent does not matter.
What do you think about introducing a
StrictClient
, that allows specifying an exact sequence of matchers, and thatI think this could also nicely cover #36.
What do you think?
Possible Solutions
I would of course propose a PR if you think such a feature would be a nice addition.
🤓
The text was updated successfully, but these errors were encountered: