From f938c89321e7efe2b1845e0a4873f351d6ecccbb Mon Sep 17 00:00:00 2001 From: DOHA Date: Mon, 12 Dec 2016 21:54:16 +0200 Subject: [PATCH] cleanup and upgrade --- gson/pom.xml | 36 +++++-------------- guava/pom.xml | 28 +++------------ guava18/pom.xml | 13 ++++--- guava19/pom.xml | 9 +++-- .../httpclient/HttpAsyncClientLiveTest.java | 4 +-- 5 files changed, 30 insertions(+), 60 deletions(-) diff --git a/gson/pom.xml b/gson/pom.xml index d864c289c2..f2a2f4f930 100644 --- a/gson/pom.xml +++ b/gson/pom.xml @@ -13,7 +13,7 @@ joda-time joda-time - 2.4 + ${joda-time.version} @@ -24,13 +24,13 @@ commons-io commons-io - 2.4 + ${commons-io.version} org.apache.commons commons-collections4 - 4.0 + ${commons-collections4.version} @@ -39,8 +39,6 @@ ${commons-lang3.version} - - @@ -112,40 +110,24 @@ - - 4.3.11.Final - 5.1.38 - - 2.3 - - - 1.7.13 - 1.1.3 - - - 5.1.3.Final + 2.8.0 19.0 - 3.4 + 3.5 + 4.1 + 2.5 + 2.9.6 1.3 4.12 1.10.19 - 4.4.1 - 4.5 - - 2.9.0 - - 3.5.1 - 2.6 + 3.6.0 2.19.1 - 2.7 - 1.4.18 diff --git a/guava/pom.xml b/guava/pom.xml index 59ca3aa1bb..a7b4e79e34 100644 --- a/guava/pom.xml +++ b/guava/pom.xml @@ -19,7 +19,7 @@ org.apache.commons commons-collections4 - 4.0 + ${commons-collections4.version} @@ -28,8 +28,6 @@ ${commons-lang3.version} - - @@ -93,37 +91,19 @@ - - 4.3.11.Final - 5.1.38 - - - 1.7.13 - 1.1.3 - - - 5.1.3.Final - 19.0 - 3.4 + 3.5 + 4.1 1.3 4.12 1.10.19 - 4.4.1 - 4.5 - - 2.9.0 - - 3.5.1 - 2.6 + 3.6.0 2.19.1 - 2.7 - 1.4.18 diff --git a/guava18/pom.xml b/guava18/pom.xml index 413e9c35b8..1118a13e07 100644 --- a/guava18/pom.xml +++ b/guava18/pom.xml @@ -11,13 +11,13 @@ com.google.guava guava - 18.0 + ${guava.version} junit junit - 4.12 + ${junit.version} test @@ -26,7 +26,7 @@ maven-compiler-plugin - 3.3 + ${maven-compiler-plugin.version} true true @@ -39,5 +39,10 @@ - + + + 18.0 + 4.12 + 3.6.0 + \ No newline at end of file diff --git a/guava19/pom.xml b/guava19/pom.xml index 61fbf38575..75f87ccf4f 100644 --- a/guava19/pom.xml +++ b/guava19/pom.xml @@ -17,13 +17,13 @@ junit junit - 4.12 + ${junit.version} test org.hamcrest hamcrest-all - 1.3 + ${hamcrest.version} test @@ -32,7 +32,7 @@ maven-compiler-plugin - 3.3 + ${maven-compiler-plugin.version} true true @@ -48,6 +48,9 @@ 19.0 + 4.12 + 1.3 + 3.6.0 \ No newline at end of file diff --git a/httpclient/src/test/java/org/baeldung/httpclient/HttpAsyncClientLiveTest.java b/httpclient/src/test/java/org/baeldung/httpclient/HttpAsyncClientLiveTest.java index b1399dcab8..f2086f2633 100644 --- a/httpclient/src/test/java/org/baeldung/httpclient/HttpAsyncClientLiveTest.java +++ b/httpclient/src/test/java/org/baeldung/httpclient/HttpAsyncClientLiveTest.java @@ -37,7 +37,7 @@ public class HttpAsyncClientLiveTest { private static final String HOST = "http://www.google.com"; private static final String HOST_WITH_SSL = "https://mms.nw.ru/"; - private static final String HOST_WITH_PROXY = "https://issues.apache.org/"; + private static final String HOST_WITH_PROXY = "http://httpbin.org/"; private static final String URL_SECURED_BY_BASIC_AUTHENTICATION = "http://browserspy.dk/password-ok.php";// "http://localhost:8080/spring-security-rest-basic-auth/api/foos/1"; private static final String DEFAULT_USER = "test";// "user1"; private static final String DEFAULT_PASS = "test";// "user1Pass"; @@ -89,7 +89,7 @@ public class HttpAsyncClientLiveTest { public void whenUseProxyWithHttpClient_thenCorrect() throws Exception { final CloseableHttpAsyncClient client = HttpAsyncClients.createDefault(); client.start(); - final HttpHost proxy = new HttpHost("74.50.126.248", 3127); + final HttpHost proxy = new HttpHost("127.0.0.1", 8080); final RequestConfig config = RequestConfig.custom().setProxy(proxy).build(); final HttpGet request = new HttpGet(HOST_WITH_PROXY); request.setConfig(config);