Polishing

This commit is contained in:
Juergen Hoeller
2018-03-28 02:03:31 +02:00
parent 59189e5957
commit 9cc03fa8b0
52 changed files with 511 additions and 560 deletions

View File

@@ -241,8 +241,7 @@ public class JsonPathExpectationsHelper {
return this.jsonPath.read(content);
}
catch (Throwable ex) {
String message = "No value at JSON path \"" + this.expression + "\"";
throw new AssertionError(message, ex);
throw new AssertionError("No value at JSON path \"" + this.expression + "\": " + ex);
}
}
@@ -251,8 +250,7 @@ public class JsonPathExpectationsHelper {
return JsonPath.parse(content).read(this.expression, targetType);
}
catch (Throwable ex) {
String message = "No value at JSON path \"" + this.expression + "\"";
throw new AssertionError(message, ex);
throw new AssertionError("No value at JSON path \"" + this.expression + "\": " + ex);
}
}