dependency 'com.ibm.icu:icu4j:3.4.4'
dependency 'com.microsoft.sqlserver:mssql-jdbc:6.2.2.jre8'
dependency 'com.oracle.jdbc:ojdbc8:12.2.0.1.0'
- dependencySet(group: 'com.squareup.okhttp3', version: '3.7.0') {
+ dependencySet(group: 'com.squareup.okhttp3', version: '3.14.0') {
entry 'okhttp'
entry 'mockwebserver'
}
settings.setProperty("http.proxyPassword", "the-password");
OkHttpClient client = underTest.provide(settings.asConfig(), runtime);
- Response response = new Response.Builder().protocol(Protocol.HTTP_1_1).request(new Request.Builder().url("http://foo").build()).code(407).build();
+ Response response = new Response.Builder().protocol(Protocol.HTTP_1_1).request(new Request.Builder().url("http://foo").build()).code(407)
+ .message("").build();
Request request = client.proxyAuthenticator().authenticate(null, response);
assertThat(request.header("Proxy-Authorization")).isEqualTo("Basic " + Base64.getEncoder().encodeToString("the-login:the-password".getBytes()));