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.
我将使用 pact dsl 将集合地图建模为我的提供者的响应,但我不知道如何。如果有人可以帮助我,我将不胜感激。
Map<String, Collection<myObject>> responseBody;
这是我可以建模的方式:
DslPart respBody = new PactDslJsonBody() .object("object name") .eachKeyMappedToAnArrayLike("key of the map") //myObject body .closeArray() .closeObject();