From f3b77f5f90bbf88d385097e303600c2291ad2b3d Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Wed, 8 Jan 2025 15:07:46 +0100 Subject: [PATCH] Adopt to changes in Spring Framework 7. See #2449 --- .../springframework/data/rest/webmvc/support/ETagUnitTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagUnitTests.java index ce398e7b7..eeb4a387d 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagUnitTests.java @@ -135,7 +135,7 @@ void doesNotAddHeaderForNoETag() { HttpHeaders headers = ETag.NO_ETAG.addTo(new HttpHeaders()); - assertThat(headers.containsKey("ETag")).isFalse(); + assertThat(headers.getFirst("ETag")).isNull(); } // tag::versioned-sample[]