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 650909a75fd..3bc70803801 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 @@ -65,7 +65,7 @@ public class XpathRequestMatchers { /** * Apply the XPath and assert it with the given {@code Matcher}. */ - public RequestMatcher node(Matcher matcher) { + public RequestMatcher node(Matcher matcher) { return new AbstractXpathRequestMatcher() { @Override protected void matchInternal(MockClientHttpRequest request) throws Exception { @@ -77,7 +77,7 @@ public class XpathRequestMatchers { /** * Assert that content exists at the given XPath. */ - public RequestMatcher exists() { + public RequestMatcher exists() { return new AbstractXpathRequestMatcher() { @Override protected void matchInternal(MockClientHttpRequest request) throws Exception { @@ -89,7 +89,7 @@ public class XpathRequestMatchers { /** * Assert that content does not exist at the given XPath. */ - public RequestMatcher doesNotExist() { + public RequestMatcher doesNotExist() { return new AbstractXpathRequestMatcher() { @Override protected void matchInternal(MockClientHttpRequest request) throws Exception { @@ -102,7 +102,7 @@ public class XpathRequestMatchers { * Apply the XPath and assert the number of nodes found with the given * {@code Matcher}. */ - public RequestMatcher nodeCount(Matcher matcher) { + public RequestMatcher nodeCount(Matcher matcher) { return new AbstractXpathRequestMatcher() { @Override protected void matchInternal(MockClientHttpRequest request) throws Exception { @@ -114,7 +114,7 @@ public class XpathRequestMatchers { /** * Apply the XPath and assert the number of nodes found. */ - public RequestMatcher nodeCount(int expectedCount) { + public RequestMatcher nodeCount(int expectedCount) { return new AbstractXpathRequestMatcher() { @Override protected void matchInternal(MockClientHttpRequest request) throws Exception { @@ -126,7 +126,7 @@ public class XpathRequestMatchers { /** * Apply the XPath and assert the String content found with the given matcher. */ - public RequestMatcher string(Matcher matcher) { + public RequestMatcher string(Matcher matcher) { return new AbstractXpathRequestMatcher() { @Override protected void matchInternal(MockClientHttpRequest request) throws Exception { @@ -150,7 +150,7 @@ public class XpathRequestMatchers { /** * Apply the XPath and assert the number found with the given matcher. */ - public RequestMatcher number(Matcher matcher) { + public RequestMatcher number(Matcher matcher) { return new AbstractXpathRequestMatcher() { @Override protected void matchInternal(MockClientHttpRequest request) throws Exception { @@ -174,7 +174,7 @@ public class XpathRequestMatchers { /** * Apply the XPath and assert the boolean value found. */ - public RequestMatcher booleanValue(Boolean value) { + public RequestMatcher booleanValue(Boolean value) { return new AbstractXpathRequestMatcher() { @Override protected void matchInternal(MockClientHttpRequest request) throws Exception {