mercredi 23 novembre 2016

Wiremock post request throws exception

I have an endpoint which accepts post requests. These requests contain an image. I have cucumber tests which try to mock out the endpoints. When I run my tests currently, wiremock matches the correct endpoint(as wiremock does not have an error about unmatched endpoints).

But I get java.net.ConnectException as the connection is refused. I'm not sure why the connection is being refused as wiremock seems to be configured to accept requests on the url.

I have registered the url on my wiremock. Do I need to do anything special if an image or any kind of object is involved in the request?

Thanks!

Aucun commentaire:

Enregistrer un commentaire