From 13cdb70f64409abac7fb40cfec2250d951e6da99 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 24 Oct 2019 13:49:35 +0200 Subject: [PATCH] Reinstate protected XpathRequestMatchers constructor This commit makes the XpathRequestMatchers constructor protected again in case users have extended this class. --- .../test/web/client/match/XpathRequestMatchers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-test/src/main/java/org/springframework/test/web/client/match/XpathRequestMatchers.java b/spring-test/src/main/java/org/springframework/test/web/client/match/XpathRequestMatchers.java index 0fb49b608c..6fd80b7d44 100644 --- a/spring-test/src/main/java/org/springframework/test/web/client/match/XpathRequestMatchers.java +++ b/spring-test/src/main/java/org/springframework/test/web/client/match/XpathRequestMatchers.java @@ -58,7 +58,7 @@ public class XpathRequestMatchers { * formatting specifiers defined in {@link String#format(String, Object...)} * @throws XPathExpressionException if expression compilation failed */ - XpathRequestMatchers(String expression, @Nullable Map namespaces, Object... args) + protected XpathRequestMatchers(String expression, @Nullable Map namespaces, Object... args) throws XPathExpressionException { this.xpathHelper = new XpathExpectationsHelper(expression, namespaces, args);