|
|
@ -33,7 +33,9 @@ public class JsonAsserterImpl implements JsonAsserter { |
|
|
|
try { |
|
|
|
try { |
|
|
|
obj = JsonPath.<T>read(jsonObject, path); |
|
|
|
obj = JsonPath.<T>read(jsonObject, path); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
throw new AssertionError(String.format("Error reading JSON path [%s]: %s", path, e)); |
|
|
|
final AssertionError assertionError = new AssertionError(String.format("Error reading JSON path [%s]", path)); |
|
|
|
|
|
|
|
assertionError.initCause(e); |
|
|
|
|
|
|
|
throw assertionError; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!matcher.matches(obj)) { |
|
|
|
if (!matcher.matches(obj)) { |
|
|
|