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
I have a cyclic object graph that looks something like this:
MyObject --> MyGroupingObject --> Set<MyObject>
MyObject has a reference to MyGroupingObject, which has a Set of MyObjects, which each in turn has a MyGroupingObject.
MyObject
MyGroupingObject
I want to ignore matching the set, and I expect to do it like this:
assertThat(actual, sameBeanAs(expected).ignoring("myGroupingObject.myObjects"));
However, the JSON with cyclic reference pointers looks like this:
{ "0x1": { "myGroupingObject": "0x2" }, "0x2": { "myObjects": [ "0x1", "0x3" ] }, "0x3": { "myGroupingObject": "0x2" } }
In order to ignore "myObjects", I need to do this:
assertThat(actual, sameBeanAs(expected).ignoring("0x2.myObjects").ignoring("0x3"));
This is very unintuitive and requires inspecting the JSON to figure out what the field path is.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a cyclic object graph that looks something like this:
MyObject
has a reference toMyGroupingObject
, which has a Set ofMyObject
s, which each in turn has aMyGroupingObject
.I want to ignore matching the set, and I expect to do it like this:
However, the JSON with cyclic reference pointers looks like this:
In order to ignore "myObjects", I need to do this:
This is very unintuitive and requires inspecting the JSON to figure out what the field path is.
The text was updated successfully, but these errors were encountered: