hoverfly-java icon indicating copy to clipboard operation
hoverfly-java copied to clipboard

Captor of body

Open kadirbekov opened this issue 6 years ago • 0 comments

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

kadirbekov avatar Jun 18 '19 11:06 kadirbekov