From 31127270645f2cd3296bdbf2da3657ec63444ec6 Mon Sep 17 00:00:00 2001 From: Anastasios Ioannidis <121166333+anastasiosioannidis@users.noreply.github.com> Date: Thu, 9 Mar 2023 10:09:08 +0200 Subject: [PATCH] JAVA-15014 Moving all client4 code from client-2 to httpclient4 (#13595) --- .../httpclient/httpclient/ApacheHttpClientUnitTest.java | 1 - apache-httpclient4/README.md | 2 ++ .../httpclient/expandurl/HttpClientExpandUrlLiveTest.java | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename {apache-httpclient-2 => apache-httpclient4}/src/test/java/com/baeldung/httpclient/expandurl/HttpClientExpandUrlLiveTest.java (100%) diff --git a/apache-httpclient-2/src/test/java/com/baeldung/httpclient/httpclient/ApacheHttpClientUnitTest.java b/apache-httpclient-2/src/test/java/com/baeldung/httpclient/httpclient/ApacheHttpClientUnitTest.java index 07bd356d62..adf9a1a1a6 100644 --- a/apache-httpclient-2/src/test/java/com/baeldung/httpclient/httpclient/ApacheHttpClientUnitTest.java +++ b/apache-httpclient-2/src/test/java/com/baeldung/httpclient/httpclient/ApacheHttpClientUnitTest.java @@ -12,7 +12,6 @@ import org.apache.hc.client5.http.impl.classic.HttpClients; import org.apache.hc.core5.http.HttpEntity; import org.apache.hc.core5.http.HttpStatus; import org.apache.hc.core5.http.io.entity.EntityUtils; -import org.apache.http.client.methods.CloseableHttpResponse; import org.junit.jupiter.api.Test; class ApacheHttpClientUnitTest extends GetRequestMockServer { diff --git a/apache-httpclient4/README.md b/apache-httpclient4/README.md index 25791d05e6..dff63a5cc1 100644 --- a/apache-httpclient4/README.md +++ b/apache-httpclient4/README.md @@ -7,6 +7,8 @@ This module contains articles about Apache HttpClient 4.5 - [Apache HttpClient with SSL](https://www.baeldung.com/httpclient-ssl) - [Apache HttpClient Timeout](https://www.baeldung.com/httpclient-timeout) - [Custom HTTP Header with the Apache HttpClient](https://www.baeldung.com/httpclient-custom-http-header) +- [Apache HttpClient vs. CloseableHttpClient](https://www.baeldung.com/apache-httpclient-vs-closeablehttpclient) +- [Expand Shortened URLs with Apache HttpClient](https://www.baeldung.com/apache-httpclient-expand-url) ### Running the Tests To run the live tests, use the command: mvn clean install -Plive diff --git a/apache-httpclient-2/src/test/java/com/baeldung/httpclient/expandurl/HttpClientExpandUrlLiveTest.java b/apache-httpclient4/src/test/java/com/baeldung/httpclient/expandurl/HttpClientExpandUrlLiveTest.java similarity index 100% rename from apache-httpclient-2/src/test/java/com/baeldung/httpclient/expandurl/HttpClientExpandUrlLiveTest.java rename to apache-httpclient4/src/test/java/com/baeldung/httpclient/expandurl/HttpClientExpandUrlLiveTest.java