I have a piece of code which runs a wiremock server on a specific port.
When I hit the wiremock server at /some/url/ Wire mock returns an Http response with JSON body. I can validate the status code of the response. Is there a way to validate specific fields of JSON response.
Sample Response
{"id1": "id1", "id2": "id2value"}
Is there a way to verify something life VerifyJsonResponse("id2").("id2value")?
Aucun commentaire:
Enregistrer un commentaire