diff --git a/.travis.yml b/.travis.yml index 9b6c70bea..412a6601d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,8 @@ sudo: false jdk: - openjdk7 + - oraclejdk8 + - openjdk11 after_success: - mvn clean cobertura:cobertura coveralls:report diff --git a/httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java b/httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java index c6ff47f4d..33afa0132 100644 --- a/httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java +++ b/httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java @@ -203,8 +203,10 @@ public class TestSSLSocketFactory { final SSLSocket sslSocket = (SSLSocket) socketFactory.connectSocket(0, socket, target, remoteAddress, null, context); try { - final SSLSession sslsession = sslSocket.getSession(); + final InputStream inputStream = sslSocket.getInputStream(); + Assert.assertEquals(-1, inputStream.read()); + final SSLSession sslsession = sslSocket.getSession(); Assert.assertNotNull(sslsession); Assert.assertTrue(hostVerifier.isFired()); } finally { diff --git a/pom.xml b/pom.xml index b986f9e4c..646e0f7f1 100644 --- a/pom.xml +++ b/pom.xml @@ -407,4 +407,42 @@ + + + + animal-sniffer + + + src/site/resources/profile.noanimal + + + + + + org.codehaus.mojo + animal-sniffer-maven-plugin + ${hc.animal-sniffer.version} + + + checkAPIcompatibility + + check + + + + + + org.codehaus.mojo.signature + java16 + 1.1 + + java.util.concurrent.ConcurrentHashMap* + + + + + + + +