From 25f5053e70afc63802c10375fa8246cdb37e417e Mon Sep 17 00:00:00 2001 From: spencergibb Date: Thu, 18 Mar 2021 18:06:24 -0400 Subject: [PATCH] Disables tests for java 16 --- ...efaultApacheHttpClientConnectionManagerFactoryTests.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spring-cloud-commons/src/test/java/org/springframework/cloud/commons/httpclient/DefaultApacheHttpClientConnectionManagerFactoryTests.java b/spring-cloud-commons/src/test/java/org/springframework/cloud/commons/httpclient/DefaultApacheHttpClientConnectionManagerFactoryTests.java index f056166e..2d819bbc 100644 --- a/spring-cloud-commons/src/test/java/org/springframework/cloud/commons/httpclient/DefaultApacheHttpClientConnectionManagerFactoryTests.java +++ b/spring-cloud-commons/src/test/java/org/springframework/cloud/commons/httpclient/DefaultApacheHttpClientConnectionManagerFactoryTests.java @@ -28,7 +28,9 @@ import org.apache.http.conn.HttpClientConnectionManager; import org.apache.http.conn.socket.ConnectionSocketFactory; import org.apache.http.impl.conn.DefaultHttpClientConnectionOperator; import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; -import org.junit.Test; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledForJreRange; +import org.junit.jupiter.api.condition.JRE; import org.springframework.util.ReflectionUtils; @@ -65,6 +67,7 @@ public class DefaultApacheHttpClientConnectionManagerFactoryTests { } @Test + @DisabledForJreRange(min = JRE.JAVA_16) public void newConnectionManagerWithSSL() { HttpClientConnectionManager connectionManager = new DefaultApacheHttpClientConnectionManagerFactory() .newConnectionManager(false, 2, 6); @@ -75,6 +78,7 @@ public class DefaultApacheHttpClientConnectionManagerFactoryTests { } @Test + @DisabledForJreRange(min = JRE.JAVA_16) public void newConnectionManagerWithDisabledSSLValidation() { HttpClientConnectionManager connectionManager = new DefaultApacheHttpClientConnectionManagerFactory() .newConnectionManager(true, 2, 6);