Skip to content
This repository was archived by the owner on Sep 25, 2023. It is now read-only.

Expect with parameter? #50

Open
membersound opened this issue Jan 22, 2020 · 1 comment
Open

Expect with parameter? #50

membersound opened this issue Jan 22, 2020 · 1 comment

Comments

@membersound
Copy link

Could you enhance .expect() with a parameter? Maybe with the use of RequestMatcher?

server.expect(RequestMatcher... matcher).withPath("/api/v1/users").andReturn(200, "admin");

So it could be possible to return results based on the send request (especially important when multiple async requests are send to the mockWebServer).

@rohanKanojia
Copy link
Member

@membersound : Would you like to create a PR to add this feature?

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

No branches or pull requests

2 participants