assertj-json icon indicating copy to clipboard operation
assertj-json copied to clipboard

Handle json path expression failures

Open jrglee opened this issue 9 years ago • 0 comments

Sometimes it is useful to validate when a jsonpath expression does not return anything, i.e.: validate if your serialized is ignoring entries with null value properly. The jsonpath library throws an exception when the path cannot evaluated, in this case the assertion utility can just wrap this exception and validate the path does not exist.

jrglee avatar Jun 07 '16 19:06 jrglee