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

Captor of body #211

Open
kadirbekov opened this issue Jun 18, 2019 · 0 comments
Open

Captor of body #211

kadirbekov opened this issue Jun 18, 2019 · 0 comments

Comments

@kadirbekov
Copy link

Is your feature request related to a problem? Please describe.
As developer/tester, I want to use Hoverfly, so that I can capture value of body, after simulation.
I have simulation with anyBody parameter.
notificationRule.simulate(dsl(service("http://localhost:8060").post("/api/notification/send").anyBody().willReturn(success("Ok!", "charset=utf-8"))));

And I need to take exact value of that body during verify.
See Mockito Captor.

Describe the solution you'd like
It’s possible to create a Captor interface like Mockito

@tommysitu tommysitu transferred this issue from SpectoLabs/hoverfly Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants