模拟依赖的微服务以测试另一个微服务的性能

Mock the dependent microservices for testing the performance of another microservice

我正在设置用于测试微服务性能的环境A.This微服务 A 依赖于另一个微服务B.Both微服务已在 JHipster Registry 中注册并使用了 Rippon 客户端用于在微服务(A 和 B)之间进行通信。如何模拟依赖的微服务,以便我不需要访问真正的微服务 B?

你有多种选择,你实现了这个:

  1. WireMock
  2. RESTAssured
  3. MockMvc
  4. MockRestServer