Skip to content

Commit 49dee80

Browse files
authored
Merge pull request #18280 from panos-kakos/JAVA-44311
[JAVA-44311]
2 parents 548b577 + 3446a97 commit 49dee80

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core-java-modules/core-java-11/src/test/java/com/baeldung/java11/httpclient/test/HttpClientUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void shouldFollowRedirectWhenSetToAlways() throws IOException, Interrupte
8282
assertThat(response.statusCode(), equalTo(HttpURLConnection.HTTP_OK));
8383
assertThat(response.request()
8484
.uri()
85-
.toString(), equalTo("https://stackoverflow.com/"));
85+
.toString(), equalTo("https://stackoverflow.com/questions"));
8686
}
8787

8888
@Test

core-java-modules/core-java-11/src/test/java/com/baeldung/java11/httpclient/test/HttpRequestUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void shouldReturnStatusOKWhenSendGetRequest() throws IOException, Interru
3838
@Test
3939
public void shouldUseHttp2WhenWebsiteUsesHttp2() throws IOException, InterruptedException, URISyntaxException {
4040
HttpRequest request = HttpRequest.newBuilder()
41-
.uri(new URI("https://stackoverflow.com"))
41+
.uri(new URI("https://stackoverflow.com/questions"))
4242
.version(HttpClient.Version.HTTP_2)
4343
.GET()
4444
.build();

core-java-modules/core-java-11/src/test/java/com/baeldung/java11/httpclient/test/HttpResponseUnitTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void shouldReturnStatusOKWhenSendGetRequest() throws IOException, Interru
3434
}
3535

3636
@Test
37-
public void shouldResponseURIDifferentThanRequestUIRWhenRedirect() throws IOException, InterruptedException, URISyntaxException {
37+
public void shouldResponseURIDifferentThanRequestURIWhenRedirect() throws IOException, InterruptedException, URISyntaxException {
3838
HttpRequest request = HttpRequest.newBuilder()
3939
.uri(new URI("http://stackoverflow.com"))
4040
.version(HttpClient.Version.HTTP_2)
@@ -48,7 +48,7 @@ public void shouldResponseURIDifferentThanRequestUIRWhenRedirect() throws IOExce
4848
assertThat(request.uri()
4949
.toString(), equalTo("http://stackoverflow.com"));
5050
assertThat(response.uri()
51-
.toString(), equalTo("https://stackoverflow.com/"));
51+
.toString(), equalTo("https://stackoverflow.com/questions"));
5252
}
5353

5454
}

0 commit comments

Comments
 (0)