Strategy for unit testing a Spring Cloud Service
问题 Given the following Spring Cloud setup: A data-service with access to a database, an eureka-service to handle service registry and discovery and a third service business-service which will be one of various services which encapsulate business cases. Unit testing the data-service is no problem, I just turn off eureka via eureka.client.enabled=false and use an in-memory database for my tests. To access the data-service from business-service , I'm using an @FeignClient("data-service") annotated