So I got a task where I have to verify the REST response of a remote micro service. For now, I built an app that calling the given REST endpoint and now I have to verify the result.
My question is, where should I write the tests? If I write into the test scope with Junit/TestNG it should be unit tests with mocked objects, right?. But in this case, I couldn't test the remote service correctly.
Is it a bad pattern to call real service from test scope using Junit?
Thanks!
Aucun commentaire:
Enregistrer un commentaire