From 0420201ae981517ceadcb2a9d866ee5ec2a3e3c0 Mon Sep 17 00:00:00 2001 From: stigus Date: Wed, 16 Oct 2024 10:06:47 +0200 Subject: [PATCH] * Fullmakt fix for test #deploy-test-dolly-backend --- .../nav/dolly/bestilling/fullmakt/FullmaktClientTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/fullmakt/FullmaktClientTest.java b/apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/fullmakt/FullmaktClientTest.java index bf7562dd6b..1309a3feb0 100644 --- a/apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/fullmakt/FullmaktClientTest.java +++ b/apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/fullmakt/FullmaktClientTest.java @@ -19,12 +19,12 @@ import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.MockitoAnnotations; -import org.springframework.http.HttpStatus; import reactor.core.publisher.Flux; import java.time.LocalDateTime; import java.util.List; +import static java.util.Collections.emptyList; import static java.util.Collections.singletonList; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.ArgumentMatchers.any; @@ -74,7 +74,7 @@ public void shouldSetMissingFullmektigFromPdlRelasjon() { BestillingProgress progress = new BestillingProgress(); FullPersonDTO fullPersonDTO = FullPersonDTO.builder() - .person(PersonDTO.builder().ident(RELASJON_IDENT) + .person(PersonDTO.builder().ident(IDENT) .build()) .relasjoner(List.of( FullPersonDTO.RelasjonDTO.builder() @@ -91,7 +91,7 @@ public void shouldSetMissingFullmektigFromPdlRelasjon() { when(pdlDataConsumer.getPersoner(any())).thenReturn(Flux.just(fullPersonDTO)); - FullmaktResponse fullmaktResponse = FullmaktResponse.builder().status(HttpStatus.OK).build(); + FullmaktResponse fullmaktResponse = FullmaktResponse.builder().fullmakt(emptyList()).build(); when(fullmaktConsumer.createFullmaktData(any(), any())).thenReturn(Flux.just(fullmaktResponse)); Flux result = fullmaktClient.gjenopprett(bestilling, dollyPerson, progress, true);