How can I check with rest-assured (2.4.0) if the response json is an empty list?
Given the response []
(with header content-type=application/json
) I tried:
.body(Matchers.emptyArray()) // expected: an empty array, actual: []
.body("/", Matchers.emptyArray()) // invalid expression /
.body(".", Matchers.emptyArray()) // invalid expression .