如果响应json是一个空列表,我如何与rest-assured(2.4.0)一起检查?
鉴于回应 []
(带标题 content-type=application/json
) 我试过了:
.body(Matchers.emptyArray()) // expected: an empty array, actual: []
.body("/", Matchers.emptyArray()) // invalid expression /
.body(".", Matchers.emptyArray()) // invalid expression .