Skip to content

Commit

Permalink
* Fullmakt fix for test
Browse files Browse the repository at this point in the history
#deploy-test-dolly-backend
  • Loading branch information
stigus committed Oct 16, 2024
1 parent 9cf4f0e commit 0420201
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand All @@ -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<ClientFuture> result = fullmaktClient.gjenopprett(bestilling, dollyPerson, progress, true);
Expand Down

0 comments on commit 0420201

Please sign in to comment.