Skip to content

Commit fce389e

Browse files
committed
Update HttpMethodTests to include HTTP method CONNECT
Modified the values test in HttpMethodTests to include the CONNECT method.
1 parent a3c820c commit fce389e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-web/src/test/java/org/springframework/http/HttpMethodTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ void comparison() {
4444
void values() {
4545
HttpMethod[] values = HttpMethod.values();
4646
assertThat(values).containsExactly(HttpMethod.GET, HttpMethod.HEAD, HttpMethod.POST, HttpMethod.PUT,
47-
HttpMethod.PATCH, HttpMethod.DELETE, HttpMethod.OPTIONS, HttpMethod.TRACE);
47+
HttpMethod.PATCH, HttpMethod.DELETE, HttpMethod.CONNECT, HttpMethod.OPTIONS, HttpMethod.TRACE);
4848

4949
// check defensive copy
5050
values[0] = HttpMethod.POST;
5151
assertThat(HttpMethod.values()).containsExactly(HttpMethod.GET, HttpMethod.HEAD, HttpMethod.POST, HttpMethod.PUT,
52-
HttpMethod.PATCH, HttpMethod.DELETE, HttpMethod.OPTIONS, HttpMethod.TRACE);
52+
HttpMethod.PATCH, HttpMethod.DELETE, HttpMethod.CONNECT, HttpMethod.OPTIONS, HttpMethod.TRACE);
5353
}
5454

5555
@Test

0 commit comments

Comments
 (0)