From 44a27ffc3f119163e341497e08092d79068d69ac Mon Sep 17 00:00:00 2001 From: Jostein Holje Date: Thu, 30 Nov 2023 10:28:58 +0100 Subject: [PATCH] Fjern sport av no.nav.common.featuretoggle.UnleashClient --- .../resources/OrdinaerBrukerRegistreringResourceTest.kt | 3 +-- .../reaktivering/resources/ReaktiveringResourceTest.kt | 3 +-- .../registrering/sykmeldt/resources/SykmeldtResourceTest.kt | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/ordinaer/resources/OrdinaerBrukerRegistreringResourceTest.kt b/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/ordinaer/resources/OrdinaerBrukerRegistreringResourceTest.kt index 4aeb9ab0e..9830a28cc 100644 --- a/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/ordinaer/resources/OrdinaerBrukerRegistreringResourceTest.kt +++ b/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/ordinaer/resources/OrdinaerBrukerRegistreringResourceTest.kt @@ -8,7 +8,6 @@ import io.mockk.mockkStatic import io.mockk.verify import javax.servlet.http.HttpServletRequest import no.nav.common.auth.context.AuthContextHolder -import no.nav.common.featuretoggle.UnleashClient import no.nav.fo.veilarbregistrering.autorisasjon.TilgangskontrollService import no.nav.fo.veilarbregistrering.besvarelse.Besvarelse import no.nav.fo.veilarbregistrering.besvarelse.HelseHinderSvar @@ -132,7 +131,7 @@ private class OrdinaerBrukerRegistreringResourceConfig { } @Bean - fun unleashClient(): UnleashClient = mockk(relaxed = true) + fun unleashClient(): Unleash = mockk(relaxed = true) @Bean fun pdlOppslagGateway(): PdlOppslagGateway = mockk() diff --git a/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/reaktivering/resources/ReaktiveringResourceTest.kt b/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/reaktivering/resources/ReaktiveringResourceTest.kt index b876e6335..67815607c 100644 --- a/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/reaktivering/resources/ReaktiveringResourceTest.kt +++ b/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/reaktivering/resources/ReaktiveringResourceTest.kt @@ -8,7 +8,6 @@ import io.mockk.mockkStatic import javax.servlet.http.HttpServletRequest import kotlin.test.assertNotNull import no.nav.common.auth.context.AuthContextHolder -import no.nav.common.featuretoggle.UnleashClient import no.nav.fo.veilarbregistrering.arbeidssoker.perioder.resources.Fnr import no.nav.fo.veilarbregistrering.autorisasjon.TilgangskontrollService import no.nav.fo.veilarbregistrering.bruker.Foedselsnummer @@ -124,7 +123,7 @@ private class ReaktiveringResourceConfig { ) @Bean - fun unleashClient(): UnleashClient = mockk(relaxed = true) + fun unleashClient(): Unleash = mockk(relaxed = true) @Bean fun pdlOppslagGateway(): PdlOppslagGateway = mockk() diff --git a/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/sykmeldt/resources/SykmeldtResourceTest.kt b/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/sykmeldt/resources/SykmeldtResourceTest.kt index 79089a70d..10c64c9e9 100644 --- a/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/sykmeldt/resources/SykmeldtResourceTest.kt +++ b/src/test/kotlin/no/nav/fo/veilarbregistrering/registrering/sykmeldt/resources/SykmeldtResourceTest.kt @@ -8,7 +8,6 @@ import io.mockk.mockkStatic import io.mockk.verify import javax.servlet.http.HttpServletRequest import no.nav.common.auth.context.AuthContextHolder -import no.nav.common.featuretoggle.UnleashClient import no.nav.fo.veilarbregistrering.FileToJson import no.nav.fo.veilarbregistrering.autorisasjon.TilgangskontrollService import no.nav.fo.veilarbregistrering.besvarelse.Besvarelse @@ -124,7 +123,7 @@ private class SykmeldtResourceConfig { fun tilgangskontrollService(): TilgangskontrollService = mockk(relaxed = true) @Bean - fun unleashClient(): UnleashClient = mockk(relaxed = true) + fun unleashClient(): Unleash = mockk(relaxed = true) @Bean fun pdlOppslagGateway(): PdlOppslagGateway = mockk()