Skip to content

Commit

Permalink
UPDATE: behandling test assert object
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Oct 18, 2024
1 parent 29a4f11 commit 6b75b3b
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
import no.nav.data.etterlevelse.common.domain.ExternalCode;
import no.nav.data.integration.behandling.BehandlingController.BehandlingPage;
import no.nav.data.integration.behandling.dto.Behandling;
import no.nav.data.integration.behandling.dto.PolicyResponse;
import org.junit.jupiter.api.Test;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;

import java.util.List;

import static org.assertj.core.api.Assertions.assertThat;

class BehandlingControllerIT extends IntegrationTestBase {
Expand Down Expand Up @@ -42,6 +45,14 @@ private void assertResponse(Behandling behandling) {
.linje(ExternalCode.builder().list("LINJE").code("LIN").shortName("Lin").description("desc").external(true).build())
.system(ExternalCode.builder().list("SYSTEM").code("SYS").shortName("Sys").description("desc").external(true).build())
.team("team")
.policies(List.of(PolicyResponse.builder()
.id("test policy")
.opplysningsTypeId("test information type")
.opplysningsTypeNavn("test information type")
.sensitivity(ExternalCode.builder().list("SENSITIVITY").code("POL").shortName("pol").description("desc").external(true).build())
.behandlingId(behandling.getId())
.personKategorier(List.of(ExternalCode.builder().list("SUBJECT_CATEGORY").code("BRUKER").shortName("Bruker").description("desc").external(true).build()))
.build()))
.build());
}
}

0 comments on commit 6b75b3b

Please sign in to comment.