From dd4dff2e13c62b094c91bcb0157f971f2281b707 Mon Sep 17 00:00:00 2001 From: Loredana Crusoveanu Date: Thu, 29 Sep 2022 16:15:46 +0300 Subject: [PATCH] change keycloak test to live test --- ...IntegrationTest.java => KeycloakConfigurationLiveTest.java} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename spring-boot-modules/spring-boot-keycloak/src/test/java/com/baeldung/keycloak/{KeycloakConfigurationIntegrationTest.java => KeycloakConfigurationLiveTest.java} (91%) diff --git a/spring-boot-modules/spring-boot-keycloak/src/test/java/com/baeldung/keycloak/KeycloakConfigurationIntegrationTest.java b/spring-boot-modules/spring-boot-keycloak/src/test/java/com/baeldung/keycloak/KeycloakConfigurationLiveTest.java similarity index 91% rename from spring-boot-modules/spring-boot-keycloak/src/test/java/com/baeldung/keycloak/KeycloakConfigurationIntegrationTest.java rename to spring-boot-modules/spring-boot-keycloak/src/test/java/com/baeldung/keycloak/KeycloakConfigurationLiveTest.java index e0bbef1c7f..5fc8597252 100644 --- a/spring-boot-modules/spring-boot-keycloak/src/test/java/com/baeldung/keycloak/KeycloakConfigurationIntegrationTest.java +++ b/spring-boot-modules/spring-boot-keycloak/src/test/java/com/baeldung/keycloak/KeycloakConfigurationLiveTest.java @@ -20,7 +20,8 @@ import static org.mockito.Mockito.when; @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = SpringBoot.class) -public class KeycloakConfigurationIntegrationTest { +//requires running Keycloak server and realm setup as shown in https://www.baeldung.com/spring-boot-keycloak +public class KeycloakConfigurationLiveTest { @Spy private KeycloakSecurityContextClientRequestInterceptor factory;