Adopt to changes in Spring Framework 7.

See #3038
This commit is contained in:
Mark Paluch 2025-01-08 15:11:09 +01:00
parent 49d5dee5aa
commit e298bc9f7a
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973

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");