From 70ee36224c878b8976227e8d43fdf629a751775c Mon Sep 17 00:00:00 2001 From: Dmitry Telegin Date: Fri, 31 Jul 2020 15:06:20 +0300 Subject: [PATCH] KEYCLOAK-14944 - Unit test failure in keycloak-services on Java 11 --- .../connections/httpclient/DefaultHttpClientFactoryTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/src/test/java/org/keycloak/connections/httpclient/DefaultHttpClientFactoryTest.java b/services/src/test/java/org/keycloak/connections/httpclient/DefaultHttpClientFactoryTest.java index c1f2743bef..8c1671aacf 100644 --- a/services/src/test/java/org/keycloak/connections/httpclient/DefaultHttpClientFactoryTest.java +++ b/services/src/test/java/org/keycloak/connections/httpclient/DefaultHttpClientFactoryTest.java @@ -48,7 +48,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; public class DefaultHttpClientFactoryTest { private static final String DISABLE_TRUST_MANAGER_PROPERTY = "disable-trust-manager"; - private static final String TEST_DOMAIN = "www.google.com"; + private static final String TEST_DOMAIN = "keycloak.org"; @Test public void createHttpClientProviderWithDisableTrustManager() throws IOException{ @@ -64,7 +64,7 @@ public class DefaultHttpClientFactoryTest { Assume.assumeTrue( "Could not get test url for domain", testURL.isPresent() ); response = httpClient.execute(new HttpGet(testURL.get())); } - assertEquals(HttpStatus.SC_OK,response.getStatusLine().getStatusCode()); + assertEquals(HttpStatus.SC_NOT_FOUND,response.getStatusLine().getStatusCode()); } @Test(expected = SSLPeerUnverifiedException.class)