Skip to content

Impossible to use hasItem with jsonArray #42

@nikita2206

Description

@nikita2206

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions