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
{{ message }}
Repository navigation
No detailed message when comparison of JSONString fails #101
When two JSONString objects are compared with org.skyscreamer.jsonassert.JSONCompare#compareJson
then org.skyscreamer.jsonassert.JSONCompareResult does not have an error message with actual/expected values.
That results with unclear failures of unit tests(in my example it is junit 5):
The only option for me was to debug when I wanted to get the actual/expected values mismatch.
Activity
vkorobkov commentedon Jun 19, 2018
I found a temporary dirty workaround for Spring + MockMvc + Groovy kind of tests:
ResultActionswith a custom matcher using groovy extension methodsThis matcher adds a dummy root element("body") for expected/actual JSON, so these are not JSONStrings anymore.
Test output became a little more readable:

fix issue skyscreamer#101