diff --git a/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonPathAssertions.java b/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonPathAssertions.java index 96675e85b21..19baa770be5 100644 --- a/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonPathAssertions.java +++ b/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonPathAssertions.java @@ -183,4 +183,9 @@ public class JsonPathAssertions { "to avoid being used in error instead of JsonPathAssertions#isEqualTo(String)."); } + @Override + public int hashCode() { + return super.hashCode(); + } + } diff --git a/spring-test/src/main/java/org/springframework/test/web/reactive/server/XpathAssertions.java b/spring-test/src/main/java/org/springframework/test/web/reactive/server/XpathAssertions.java index 8082b32c8ce..7675a674e97 100644 --- a/spring-test/src/main/java/org/springframework/test/web/reactive/server/XpathAssertions.java +++ b/spring-test/src/main/java/org/springframework/test/web/reactive/server/XpathAssertions.java @@ -195,6 +195,11 @@ public class XpathAssertions { "to avoid being used in error instead of XPathAssertions#isEqualTo(String)."); } + @Override + public int hashCode() { + return super.hashCode(); + } + /** * Lets us be able to use lambda expressions that could throw checked exceptions, since