vendredi 21 juillet 2017

Is there any tool or library to create mocks and use them in controllers and in tests?

The scenario is that there are client apps, the middleware that I will develop and the backend that the middleware requests to get data. I will use Java and Spring Boot.

Since the backend is not ready and to work in parallel, I want to create mock data in the middleware. I mean, if client apps requests for something, I will answer this request by the mock data. Also, I am planning writing junit tests and I want to use same mock data in these tests.

What do you recommend me in this situation? Is there any tool or library to create mocks and use them in controllers and in tests?

Aucun commentaire:

Enregistrer un commentaire