We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The AssertJ support lets us convert the result of an expression to a target object, something like:
assertThat(mvc.get().uri(/family)).bodyJson().extractingPath("$.familyMembers[0]").convertTo(Member.class)
It's not possible to do the same thing when the whole document should be converted. We can workaround at the moment as follows:
assertThat(mvc.get().uri(/family/0)).bodyJson().extractingPath("$").convertTo(Member.class)
This requires JSONPath for not good reason and requires more boilerplate than it should ideally.
The text was updated successfully, but these errors were encountered:
69c44de
snicoll
No branches or pull requests
The AssertJ support lets us convert the result of an expression to a target object, something like:
It's not possible to do the same thing when the whole document should be converted. We can workaround at the moment as follows:
This requires JSONPath for not good reason and requires more boilerplate than it should ideally.
The text was updated successfully, but these errors were encountered: