From a10f9f0f6d04061cb0cdd67c8221a00a39fe11fd Mon Sep 17 00:00:00 2001 From: Cato Olsen Date: Fri, 20 Dec 2024 13:13:19 +0100 Subject: [PATCH] Fixed test by mocking ReactiveClientRegistrationRepository. --- .../apps/endringsmeldingfrontend/ApplicationContextTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/endringsmelding-frontend/src/test/java/no/nav/testnav/apps/endringsmeldingfrontend/ApplicationContextTest.java b/apps/endringsmelding-frontend/src/test/java/no/nav/testnav/apps/endringsmeldingfrontend/ApplicationContextTest.java index ed254dcdb34..bf22354b0bc 100644 --- a/apps/endringsmelding-frontend/src/test/java/no/nav/testnav/apps/endringsmeldingfrontend/ApplicationContextTest.java +++ b/apps/endringsmelding-frontend/src/test/java/no/nav/testnav/apps/endringsmeldingfrontend/ApplicationContextTest.java @@ -3,7 +3,7 @@ import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.mock.mockito.MockBean; -import org.springframework.security.oauth2.jwt.JwtDecoder; +import org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository; import org.springframework.test.context.ActiveProfiles; import static org.assertj.core.api.AssertionsForClassTypes.assertThat; @@ -14,11 +14,12 @@ class ApplicationContextTest { @MockBean @SuppressWarnings("unused") - private JwtDecoder jwtDecoder; + private ReactiveClientRegistrationRepository reactiveClientRegistrationRepository; @Test @SuppressWarnings("java:S2699") void load_app_context() { assertThat(true).isTrue(); } + }