How do I assert the body of a network request using Junit?
something like
Assert.assertThat(put(‘example.com’), body.match({id: “123”}));
The goal is to do end to end testing where the code ends by sending a network request to an external service.
Aucun commentaire:
Enregistrer un commentaire