Skip to content

Commit 8a2e4a9

Browse files
committed
Merge branch '7.0.x'
2 parents 0fbe714 + 41b8f13 commit 8a2e4a9

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

spring-web/src/test/java/org/springframework/http/server/reactive/ReactorUriHelperTests.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,32 +55,32 @@ void hostnameWithZoneId() throws URISyntaxException {
5555

5656
@Test
5757
void requestUriWithScheme() throws URISyntaxException {
58-
given(nettyRequest.scheme()).willReturn("http");
58+
given(nettyRequest.scheme()).willReturn("https");
5959
given(nettyRequest.hostName()).willReturn("example.org");
60-
given(nettyRequest.hostPort()).willReturn(80);
61-
given(nettyRequest.uri()).willReturn("http://example.org/path");
60+
given(nettyRequest.hostPort()).willReturn(443);
61+
given(nettyRequest.uri()).willReturn("https://example.org/path");
6262

6363
URI uri = ReactorUriHelper.createUri(nettyRequest);
64-
assertThat(uri).hasScheme("http")
64+
assertThat(uri).hasScheme("https")
6565
.hasHost("example.org")
6666
.hasPort(-1)
6767
.hasPath("/path")
68-
.hasToString("http://example.org/path");
68+
.hasToString("https://example.org/path");
6969
}
7070

7171
@Test
7272
void requestUriWithoutLeadingSlash() throws URISyntaxException {
73-
given(nettyRequest.scheme()).willReturn("http");
73+
given(nettyRequest.scheme()).willReturn("https");
7474
given(nettyRequest.hostName()).willReturn("example.org");
75-
given(nettyRequest.hostPort()).willReturn(80);
75+
given(nettyRequest.hostPort()).willReturn(443);
7676
given(nettyRequest.uri()).willReturn("foo/bar");
7777

7878
URI uri = ReactorUriHelper.createUri(nettyRequest);
79-
assertThat(uri).hasScheme("http")
79+
assertThat(uri).hasScheme("https")
8080
.hasHost("example.org")
8181
.hasPort(-1)
8282
.hasPath("/foo/bar")
83-
.hasToString("http://example.org/foo/bar");
83+
.hasToString("https://example.org/foo/bar");
8484
}
8585

8686
@ParameterizedTest(name = "{displayName}({arguments})")

0 commit comments

Comments
 (0)