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 {