lundi 9 avril 2018

how to verify any given API endpoint is hit during test

There is a Java application containing multiple docker containers.

One test case is when any api endpoint (e.g. http://api.com) given, during test, some data should be posted to this api endpoint (http://api.com).

How to mock this api endpoint and write this kind of tests?

Can I do it in JUnit or any other test framework?

Any hints welcomed. Thanks

Aucun commentaire:

Enregistrer un commentaire