虽然简单的请求-响应消息模型最为流行,但是你可以使用其他的消息模型灵活的设计系统。
While the simple request-response message model is the most popular, you have the flexibility to design systems with other message models.
无需创建接口和去掉整个模拟对象的存根—您可以有选择地重写方法并返回一个简单的模拟响应。
No need to create an interface and stub out an entire mock object - you can strategically override that one method and return a simple mocked-out response.
这意味着当服务提供者处于正常的对话状态时,服务请求者和服务提供者简单地变成伙伴,与当前只简单地响应请求的角色不同。
This means that a service requester and a service provider simply become partners where the service provider engages in a proper dialogue, unlike its current role of simply responding to requests.
应用推荐