given().param(param1, type)
.get("/API").then().log().ifValidationFails()
.body("entries.id", hasItems(id2, id3))
.body("entries.id", not(hasItems(id1, id2)))
.body(SUCCESS, equalTo(true))
.assertThat().statusCode(200);
It is expected to fail at not(hasItems(id1, id2)), as id2 is present. But the test seems to pass.
But not(hasItems()) seems to work fine when single Id is passed.
Thanks,
Kuzhali