diff --git a/spring-test/src/main/java/org/springframework/test/http/HttpHeadersAssert.java b/spring-test/src/main/java/org/springframework/test/http/HttpHeadersAssert.java index c471f881e5c..27f6ae5acab 100644 --- a/spring-test/src/main/java/org/springframework/test/http/HttpHeadersAssert.java +++ b/spring-test/src/main/java/org/springframework/test/http/HttpHeadersAssert.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2024 the original author or authors. + * Copyright 2002-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -116,8 +116,9 @@ public class HttpHeadersAssert extends AbstractObjectAssert map = Map.of("first", "1", "second", "2", "third", "3"); assertThatExceptionOfType(AssertionError.class) - .isThrownBy(() -> assertThat(map).doesNotContainsHeaders("first", "another-wrong-name", "second")) + .isThrownBy(() -> assertThat(map).doesNotContainHeaders("first", "another-wrong-name", "second")) .withMessageContainingAll("HTTP headers", "first", "second"); }