Skip to content

Commit 371d1a0

Browse files
committed
Fix typo
1 parent 04944a1 commit 371d1a0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spring-test/src/main/java/org/springframework/test/http/HttpHeadersAssert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public HttpHeadersAssert containsHeaders(String... names) {
7070
* @param name the name of an HTTP header that should not be present
7171
* @see #doesNotContainKey
7272
*/
73-
public HttpHeadersAssert doesNotContainsHeader(String name) {
73+
public HttpHeadersAssert doesNotContainHeader(String name) {
7474
return doesNotContainKey(name);
7575
}
7676

spring-test/src/test/java/org/springframework/test/http/HttpHeadersAssertTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,26 @@ void containsHeadersWithSeveralNamesNotPresent() {
6262
}
6363

6464
@Test
65-
void doesNotContainsHeader() {
66-
assertThat(Map.of("first", "1")).doesNotContainsHeader("second");
65+
void doesNotContainHeader() {
66+
assertThat(Map.of("first", "1")).doesNotContainHeader("second");
6767
}
6868

6969
@Test
70-
void doesNotContainsHeaderWithNamePresent() {
70+
void doesNotContainHeaderWithNamePresent() {
7171
Map<String, String> map = Map.of("first", "1");
7272
Assertions.assertThatExceptionOfType(AssertionError.class)
7373
.isThrownBy(() -> assertThat(map).doesNotContainKey("first"))
7474
.withMessageContainingAll("HTTP headers", "first");
7575
}
7676

7777
@Test
78-
void doesNotContainsHeaders() {
78+
void doesNotContainHeaders() {
7979
assertThat(Map.of("first", "1", "third", "3"))
8080
.doesNotContainsHeaders("second", "fourth");
8181
}
8282

8383
@Test
84-
void doesNotContainsHeadersWithSeveralNamesPresent() {
84+
void doesNotContainHeadersWithSeveralNamesPresent() {
8585
Map<String, String> map = Map.of("first", "1", "second", "2", "third", "3");
8686
Assertions.assertThatExceptionOfType(AssertionError.class)
8787
.isThrownBy(() -> assertThat(map).doesNotContainsHeaders("first", "another-wrong-name", "second"))

0 commit comments

Comments
 (0)