diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-06-27 17:31:44 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-07-11 12:09:16 +0200 |
commit | e087cc91969df3e16be5be1dc421ffb0f2be830e (patch) | |
tree | 952019e129ef9ab4b0b0809d4e4291963bf9ad94 /sonar-scanner-engine | |
parent | b653291c29b67f522ff167ae51cf0ab0ddd7bf30 (diff) | |
download | sonarqube-e087cc91969df3e16be5be1dc421ffb0f2be830e.tar.gz sonarqube-e087cc91969df3e16be5be1dc421ffb0f2be830e.zip |
SONAR-7741 upgrade OK HTTP to 3.3.1
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ReportPublisher.java | 2 | ||||
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/BatchWsClientProviderTest.java | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ReportPublisher.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ReportPublisher.java index f5f22cd911e..e184fd36292 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ReportPublisher.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ReportPublisher.java @@ -22,7 +22,7 @@ package org.sonar.scanner.report; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Throwables; import com.google.common.io.Files; -import com.squareup.okhttp.HttpUrl; +import okhttp3.HttpUrl; import java.io.File; import java.io.IOException; import java.io.InputStream; diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/BatchWsClientProviderTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/BatchWsClientProviderTest.java index 89ae9049260..8fb927c6205 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/BatchWsClientProviderTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/BatchWsClientProviderTest.java @@ -45,9 +45,9 @@ public class BatchWsClientProviderTest { assertThat(client.baseUrl()).isEqualTo("http://localhost:9000/"); HttpConnector httpConnector = (HttpConnector) client.wsConnector(); assertThat(httpConnector.baseUrl()).isEqualTo("http://localhost:9000/"); - assertThat(httpConnector.okHttpClient().getProxy()).isNull(); - assertThat(httpConnector.okHttpClient().getConnectTimeout()).isEqualTo(5_000); - assertThat(httpConnector.okHttpClient().getReadTimeout()).isEqualTo(60_000); + assertThat(httpConnector.okHttpClient().proxy()).isNull(); + assertThat(httpConnector.okHttpClient().connectTimeoutMillis()).isEqualTo(5_000); + assertThat(httpConnector.okHttpClient().readTimeoutMillis()).isEqualTo(60_000); assertThat(httpConnector.userAgent()).isEqualTo("Maven Plugin/2.3"); } @@ -65,7 +65,7 @@ public class BatchWsClientProviderTest { assertThat(client).isNotNull(); HttpConnector httpConnector = (HttpConnector) client.wsConnector(); assertThat(httpConnector.baseUrl()).isEqualTo("https://here/sonarqube/"); - assertThat(httpConnector.okHttpClient().getProxy()).isNull(); + assertThat(httpConnector.okHttpClient().proxy()).isNull(); assertThat(httpConnector.userAgent()).isEqualTo("Maven Plugin/2.3"); } |