Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对黄瓜相当陌生。我正在使用它来测试 Spring Boot API。
我可以调用对 api 的调用并检查响应是否正确。
但是,无论如何我可以验证下游 api 是否已被调用?
例如 - 如果这是一个单元测试,我将模拟调用下游 api 的组件并验证它是否已使用特定的请求主体调用。
谢谢,迈克