jeudi 17 janvier 2019

Spring Testing Integration

I am new to Spring, and have been searching for testing material for a while without being able to find what I am looking for.

I have a controller, service and repository. I would like to test the integration of these classes. It's pretty much: HTTP-request handled by controller, service does the work and then saved in database by repository.

The test I am looking for would send a HTTP-request with JSON-data, then assert the response.

Previously I was working in Django and this what not an issue at all compared to Spring. Any info is much appreciated.

Aucun commentaire:

Enregistrer un commentaire