You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I look into the https://github.com/json-path/JsonPath/ library, they are using the pattern $..<fieldName>, so in our concrete case it should be $..creationDate.
Now I looked into the code and I would expect, that if I change the PathMatchers function matches() to this:
I have no idea how the Diff class works.
My test always fails and when I debug this project, it does some magical things.
When I call the method Diff.similar(), the property compared is false.
Now similar() calls compare(). Immediately after calling this method, the status of compared has been changed to true and the whole method is skipped.
If I set compared = true within this method to compared = false, the state does not change.
Maybe something is wrong with my debugger in IntelliJ, but I cannot pass the if (!compared) { section in the compare() method, the matcher is not executed properly, but the state changes and I can just avoid this by changing a part of the code, which is never executed....
So I would create a PR, but I'm unable to write a valid test for this change 😔.
The text was updated successfully, but these errors were encountered:
We like to ignore a field, independent of its structural situation.
E.g.:
or
(just that simple).
When I look into the https://github.com/json-path/JsonPath/ library, they are using the pattern
$..<fieldName>
, so in our concrete case it should be$..creationDate
.Now I looked into the code and I would expect, that if I change the
PathMatchers
functionmatches()
to this:it should work.
Is it possible to implement this?
I found something strange here...
I have no idea how the
Diff
class works.My test always fails and when I debug this project, it does some magical things.
When I call the method
Diff.similar()
, the propertycompared
isfalse
.Now
similar()
callscompare()
. Immediately after calling this method, the status ofcompared
has been changed totrue
and the whole method is skipped.If I set
compared = true
within this method tocompared = false
, the state does not change.Maybe something is wrong with my debugger in IntelliJ, but I cannot pass the
if (!compared) {
section in thecompare()
method, the matcher is not executed properly, but the state changes and I can just avoid this by changing a part of the code, which is never executed....So I would create a PR, but I'm unable to write a valid test for this change 😔.
The text was updated successfully, but these errors were encountered: