From 50235be746883b847a60560ada0720040f4323fd Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 4 May 2017 14:14:56 +0200 Subject: [PATCH] Avoid JDK 7+ AssertionError constructor in 4.3.x line --- .../test/web/servlet/result/JsonPathResultMatchers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java b/spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java index 48ff721ef1..fe33f1073d 100644 --- a/spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java +++ b/spring-test/src/main/java/org/springframework/test/web/servlet/result/JsonPathResultMatchers.java @@ -260,7 +260,7 @@ public class JsonPathResultMatchers { return content.substring(this.prefix.length()); } catch (StringIndexOutOfBoundsException ex) { - throw new AssertionError("JSON prefix \"" + this.prefix + "\" not found", ex); + throw new AssertionError("JSON prefix \"" + this.prefix + "\" not found: " + ex); } } else {