File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/org/openqa/selenium/remote/http/jdk
test/org/openqa/selenium/remote/http/jdk Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public class JdkHttpClient implements HttpClient {
8080 private final ExecutorService executorService ;
8181 private final Duration readTimeout ;
8282 private final Duration connectTimeout ;
83- private final ClientConfig config ;
83+ private ClientConfig config ;
8484
8585 JdkHttpClient (ClientConfig config ) {
8686 Objects .requireNonNull (config , "Client config must be set" );
@@ -128,7 +128,7 @@ protected PasswordAuthentication getPasswordAuthentication() {
128128
129129 // Remove credentials from URL
130130 try {
131- config =
131+ this . config =
132132 ClientConfig .defaultConfig ()
133133 .baseUri (
134134 new URI (
Original file line number Diff line number Diff line change 1717
1818package org .openqa .selenium .remote .http .jdk ;
1919
20- import static org .hamcrest .MatcherAssert .assertThat ;
2120
2221import java .net .URI ;
2322import java .net .URISyntaxException ;
24- import org .junit .Test ;
23+ import org .junit .jupiter .api .Test ;
24+ import static org .assertj .core .api .Assertions .assertThat ;
25+ import org .openqa .selenium .remote .http .ClientConfig ;
2526import org .openqa .selenium .remote .http .HttpClient ;
2627import org .openqa .selenium .remote .internal .HttpClientTestBase ;
2728
@@ -39,7 +40,6 @@ void shouldStripCredentialsFromUrl() throws URISyntaxException {
3940
4041 JdkHttpClient client = new JdkHttpClient (config );
4142
42- // Get the modified URI from the client's config
4343 URI modifiedUri = client .getBaseUri ();
4444
4545 assertThat (modifiedUri .getUserInfo ()).isNull ();
You can’t perform that action at this time.
0 commit comments