Adopt to changes in Spring Framework 7.

See #3038
This commit is contained in:
Mark Paluch 2025-01-08 15:11:09 +01:00 committed by Peter-Josef Meisch
parent 3fd2fb4d54
commit 9a83888c6e
No known key found for this signature in database
GPG Key ID: DE108246970C7708

View File

@ -78,7 +78,8 @@ class HttpHeadersTest {
springHttpHeaders.add(headerName, "true");
var httpHeaders = new HttpHeaders();
httpHeaders.addAll(springHttpHeaders);
springHttpHeaders.forEach(httpHeaders::addAll);
assertThat(httpHeaders.get(X_TEST_HEADER)).containsExactly("foo", "bar");
assertThat(httpHeaders.get(headerName)).containsExactly("true");