Skip to content

Commit b7149a5

Browse files
committed
Use apache client 5 for ProxyHostCredentialsProviderTest
1 parent 3f52d89 commit b7149a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/proxy/ProxyHostCredentialsProviderTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
import java.util.Map;
2020

21-
import org.apache.http.auth.AuthScope;
22-
import org.apache.http.auth.Credentials;
21+
import org.apache.hc.client5.http.auth.AuthScope;
22+
import org.apache.hc.client5.http.auth.Credentials;
2323
import org.junit.jupiter.api.Test;
2424

2525
import org.springframework.test.util.ReflectionTestUtils;
@@ -44,7 +44,7 @@ void should_take_only_proxy_with_connection_and_credentials_information_provided
4444
assertThat(entry.getKey().getHost()).isEqualTo("good.proxy");
4545
assertThat(entry.getKey().getPort()).isEqualTo(888);
4646
assertThat(entry.getValue().getUserPrincipal().getName()).isEqualTo("user");
47-
assertThat(entry.getValue().getPassword()).isEqualTo("P@s$W0rd!");
47+
assertThat(new String(entry.getValue().getPassword())).isEqualTo("P@s$W0rd!");
4848
}
4949

5050
private ProxyHostProperties proxyHost(String host, int port, String username, String password) {

0 commit comments

Comments
 (0)