If testing Spring Data JPA transactions is easier with Spring Boot, then the following recipe that involves testing RESTful services is also quite straightforward and convenient as compared to the usual MockMvc style.
Building tests for blocking, asynchronous and reactive RESTful services
Getting ready
Again, open the DEPARTMENT microservices project, which is ch10-deptservice, and add the following test classes that will validate the results of each RESTful service.
How to do it...
Let us implement test cases for each RESTful service of a microservice by performing the...