java-hamcrest
java-hamcrest copied to clipboard
Impossible to use hasItem with jsonArray
I know it's been mentioned in #25 but it still seems impossible to use hasItem and hasItems with jsonArray:
assertThat((JsonNode)null, jsonArray(hasItem(jsonText("as"))));
assertThat((JsonNode)null, jsonArray(hasItems(jsonText("as"), jsonText("qw"))));
assertThat((JsonNode)null, jsonObject().where("key", jsonArray(hasItems(jsonText("as"), jsonText("qw")))));
None of these will build