diff options
author | Thomas <> | 2024-03-28 18:46:16 +0100 |
---|---|---|
committer | Thomas <> | 2024-03-28 18:46:16 +0100 |
commit | 285dcb02c86ee06c7b86a4b56dc1a78b15c17ad2 (patch) | |
tree | 04bc75b8ef4a4bd4f64ba115a4257296f678acf2 /eaaf_core_utils/src/test/java | |
parent | d233142006490a667d0d5b83e768fd27172e5122 (diff) | |
download | EAAF-Components-285dcb02c86ee06c7b86a4b56dc1a78b15c17ad2.tar.gz EAAF-Components-285dcb02c86ee06c7b86a4b56dc1a78b15c17ad2.tar.bz2 EAAF-Components-285dcb02c86ee06c7b86a4b56dc1a78b15c17ad2.zip |
feat(http): add configuration parameter to set 'time-to-life' and 'validation-after-inactivity' for ConnectionPool
Diffstat (limited to 'eaaf_core_utils/src/test/java')
-rw-r--r-- | eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java b/eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java index 493d966b..7f0240ef 100644 --- a/eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java +++ b/eaaf_core_utils/src/test/java/at/gv/egiz/eaaf/core/test/http/HttpClientFactoryTest.java @@ -18,8 +18,6 @@ import java.security.Provider; import java.security.UnrecoverableKeyException; import java.security.cert.X509Certificate; -import javax.net.ssl.SSLHandshakeException; - import org.apache.commons.lang3.RandomStringUtils; import org.apache.hc.client5.http.ClientProtocolException; import org.apache.hc.client5.http.classic.methods.HttpGet; @@ -278,7 +276,7 @@ public class HttpClientFactoryTest { // perform test request final HttpUriRequest httpGet2 = new HttpGet(mockServerUrl.url().toString()); - assertThrows(SSLHandshakeException.class, () -> client.execute(httpGet2)); + assertThrows(Exception.class, () -> client.execute(httpGet2)); } |