From 3ebfbeb1a3997f6cf04c4cca77ae3db4f4885b8a Mon Sep 17 00:00:00 2001 From: Jan-Olav Eide Date: Fri, 12 Jan 2024 11:27:05 +0100 Subject: [PATCH] restClient --- .../ClientConfigurationPropertiesTestWithWellKnownUrl.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/token-client-spring/src/test/kotlin/no/nav/security/token/support/client/spring/oauth2/ClientConfigurationPropertiesTestWithWellKnownUrl.kt b/token-client-spring/src/test/kotlin/no/nav/security/token/support/client/spring/oauth2/ClientConfigurationPropertiesTestWithWellKnownUrl.kt index b5975690..bb58bcb5 100644 --- a/token-client-spring/src/test/kotlin/no/nav/security/token/support/client/spring/oauth2/ClientConfigurationPropertiesTestWithWellKnownUrl.kt +++ b/token-client-spring/src/test/kotlin/no/nav/security/token/support/client/spring/oauth2/ClientConfigurationPropertiesTestWithWellKnownUrl.kt @@ -6,6 +6,7 @@ import okhttp3.mockwebserver.MockWebServer import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test import org.springframework.beans.factory.annotation.Autowired +import org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration import org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration import org.springframework.boot.test.context.SpringBootTest import org.springframework.boot.test.mock.mockito.MockBean @@ -20,7 +21,7 @@ import no.nav.security.token.support.client.spring.oauth2.ClientConfigurationPro import no.nav.security.token.support.client.spring.oauth2.TestUtils.jsonResponse import no.nav.security.token.support.core.context.TokenValidationContextHolder -@SpringBootTest(classes = [OAuth2ClientConfiguration::class, RestTemplateAutoConfiguration::class]) +@SpringBootTest(classes = [OAuth2ClientConfiguration::class, RestClientAutoConfiguration::class]) @ContextConfiguration(initializers = [RandomPortInitializer::class]) @ActiveProfiles("test-withwellknownurl") internal class ClientConfigurationPropertiesTestWithWellKnownUrl {