vendredi 21 juillet 2017

Is there any tool or library to create mock data to use in controllers and in tests?

The scenario is that there are client apps, the middleware that I will develop with Spring Boot and the backend. When the client app need data, they requests the middleware for it. When the middleware receives the request, it requests the backend to get related data. Then, it returns the response to the client based on the response it takes from the backend.

Since the backend is not ready and to work in parallel with other developers, 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 the same mock data in these tests as well.

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

Aucun commentaire:

Enregistrer un commentaire