Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to use hasItem with jsonArray #42

Open
nikita2206 opened this issue Nov 29, 2019 · 0 comments
Open

Impossible to use hasItem with jsonArray #42

nikita2206 opened this issue Nov 29, 2019 · 0 comments

Comments

@nikita2206
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant