-
Notifications
You must be signed in to change notification settings - Fork 115
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
Provide a way back to JsonAssert
from JsonMapAssert
#560
Comments
Hi, thanks for feedback, I will look into it. |
lukas-krecan
added a commit
that referenced
this issue
Oct 2, 2022
Hi, would this be enough for your use case? |
This looks like it would do it, yes! |
Releasing as 2.36.0 |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the AssertJ API, I can use this arrangement to assert individual elements of an object node:
However, I'm then at a dead end. I would like to descend the path of the document and make some more checks:
However, the
isObject()
call returns aJsonMapAssert
, which is terminal. It would be convenient to have a method on it similar to theand()
of most nesting Spring builders that would let me get back to theJsonAssert
, and/or anode
method onJsonMapAssert
that would do the same thing with a parameter (supportingnode('.')
)?Right now, I can build assertion trees similar to the second one above using
and
, but it ends up with multiple levels of nested calls when a single linear sequence would be adequate.The text was updated successfully, but these errors were encountered: