Skip to content

Commit 11ab73e

Browse files
authored
Merge pull request #18434 from haqer1/fixups
Fix up package name in HttpClientConnectionManagementUnitTest
2 parents f28816c + a9703f0 commit 11ab73e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

core-java-modules/core-java-httpclient/src/test/java/com/baeldung/httpclient/HttpClientConnectionManagementUnitTest.java

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.httpclient.conn;
1+
package com.baeldung.httpclient;
22

33
import com.github.tomakehurst.wiremock.WireMockServer;
44
import com.github.tomakehurst.wiremock.client.WireMock;
@@ -27,11 +27,9 @@ public class HttpClientConnectionManagementUnitTest {
2727
.dynamicPort();
2828
WireMockServer firstServer = new WireMockServer(firstConfiguration);
2929
WireMockServer secondServer = new WireMockServer(secondConfiguration);
30-
private String firstUrl;
31-
private String secondUrl;
3230

33-
private HttpClient client = HttpClient.newHttpClient();
34-
private HttpClient secondClient = HttpClient.newHttpClient();
31+
private final HttpClient client = HttpClient.newHttpClient();
32+
private final HttpClient secondClient = HttpClient.newHttpClient();
3533

3634
private HttpRequest getRequest;
3735
private HttpRequest secondGet;
@@ -53,8 +51,8 @@ public void setup() {
5351
.aResponse()
5452
.withStatus(200)));
5553

56-
firstUrl = "http://localhost:" + firstServer.port() + "/first";
57-
secondUrl = "http://localhost:" + secondServer.port() + "/second";
54+
String firstUrl = "http://localhost:" + firstServer.port() + "/first";
55+
String secondUrl = "http://localhost:" + secondServer.port() + "/second";
5856

5957
getRequest = HttpRequest
6058
.newBuilder()

0 commit comments

Comments
 (0)