Skip to content

Commit

Permalink
Legger tilbake kode som ikke skulle slettes.
Browse files Browse the repository at this point in the history
Co-authored-by: Julie Hill Roa <[email protected]>
  • Loading branch information
klaramargrethehelgemo and JulieHillRoa committed Nov 29, 2024
1 parent d9a7e1f commit a5fe12d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/test/java/no/nav/veilarbperson/config/ClientTestConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
import no.nav.veilarbperson.client.nom.SkjermetClient;
import no.nav.veilarbperson.client.oppslagArbeidssoekerregisteret.OppslagArbeidssoekerregisteretClient;
import no.nav.veilarbperson.client.oppslagArbeidssoekerregisteret.OppslagArbeidssoekerregisteretClientImpl;
import no.nav.veilarbperson.client.pam.PamClient;
import no.nav.veilarbperson.client.pdl.HentPerson;
import no.nav.veilarbperson.client.pdl.PdlClient;
import no.nav.veilarbperson.client.pdl.domain.PdlRequest;
import no.nav.veilarbperson.client.veilarboppfolging.UnderOppfolging;
import no.nav.veilarbperson.client.veilarboppfolging.VeilarboppfolgingClient;
import okhttp3.Response;
import org.springframework.cloud.contract.wiremock.WireMockConfiguration;
import org.springframework.cloud.contract.wiremock.WireMockConfigurationCustomizer;
import org.springframework.context.annotation.Bean;
Expand Down Expand Up @@ -122,6 +124,7 @@ public HealthCheckResult checkHealth() {
};
}


@Bean
public SkjermetClient skjermetClient() {
return new SkjermetClient() {
Expand Down Expand Up @@ -209,6 +212,21 @@ public HealthCheckResult checkHealth() {
};
}

@Bean
public PamClient pamClient() {
return new PamClient() {
@Override
public Response hentCvOgJobbprofil(Fnr fnr, boolean erBrukerManuell) {
return null;
}

@Override
public HealthCheckResult checkHealth() {
return HealthCheckResult.healthy();
}
};
}

@Bean
public SelfTestChecks selfTestChecks() {
return mock(SelfTestChecks.class);
Expand Down

0 comments on commit a5fe12d

Please sign in to comment.