Skip to content

Commit 50235be

Browse files
committed
Avoid JDK 7+ AssertionError constructor in 4.3.x line
1 parent 1332482 commit 50235be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private String getContent(MvcResult result) throws UnsupportedEncodingException
260260
return content.substring(this.prefix.length());
261261
}
262262
catch (StringIndexOutOfBoundsException ex) {
263-
throw new AssertionError("JSON prefix \"" + this.prefix + "\" not found", ex);
263+
throw new AssertionError("JSON prefix \"" + this.prefix + "\" not found: " + ex);
264264
}
265265
}
266266
else {

0 commit comments

Comments
 (0)