Skip to content

Commit

Permalink
Nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassonav committed Feb 20, 2025
1 parent b4608e7 commit 2be2ff4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ internal class PersongalleriMapperTest {

val persongalleri = PersongalleriMapper.hentPersongalleriFraSoeknad(soeknad)

assertEquals("24111258054", persongalleri.soeker)
assertEquals(listOf("01498344336"), persongalleri.gjenlevende)
assertEquals("01498344336", persongalleri.innsender)
assertEquals("24111258054", persongalleri.soeker.value)
assertEquals(listOf("01498344336"), persongalleri.gjenlevende.map { it.value })
assertEquals("01498344336", persongalleri.innsender?.value)
assertTrue(persongalleri.soesken.isEmpty())
assertEquals(listOf("08498224343"), persongalleri.avdoed)
assertEquals(listOf("08498224343"), persongalleri.avdoed.map { it.value })
}

@Test
Expand All @@ -29,11 +29,11 @@ internal class PersongalleriMapperTest {

val persongalleri = PersongalleriMapper.hentPersongalleriFraSoeknad(soeknad)

assertEquals("13848599411", persongalleri.soeker)
assertEquals("13848599411", persongalleri.soeker.value)
assertTrue(persongalleri.gjenlevende.isEmpty())
assertEquals("13848599411", persongalleri.innsender)
assertEquals(listOf("19021370870"), persongalleri.soesken)
assertEquals(listOf("03428317423"), persongalleri.avdoed)
assertEquals("13848599411", persongalleri.innsender?.value)
assertEquals(listOf("19021370870"), persongalleri.soesken.map { it.value })
assertEquals(listOf("03428317423"), persongalleri.avdoed.map { it.value })
}

private fun getSoeknad(file: String): InnsendtSoeknad {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ internal class BehandlingTest {
Opplysningstype.PERSONGALLERI_V1 to
opprettOpplysning(
Persongalleri(
soeker = SOEKER_FOEDSELSNUMMER.value,
innsender = GJENLEVENDE_FOEDSELSNUMMER.value,
soeker = SOEKER_FOEDSELSNUMMER,
innsender = GJENLEVENDE_FOEDSELSNUMMER,
soesken = listOf(),
avdoed = listOf(AVDOED_FOEDSELSNUMMER.value),
gjenlevende = listOf(GJENLEVENDE_FOEDSELSNUMMER.value),
avdoed = listOf(AVDOED_FOEDSELSNUMMER),
gjenlevende = listOf(GJENLEVENDE_FOEDSELSNUMMER),
personerUtenIdent = listOf(),
).toJsonNode(),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1604,8 +1604,8 @@ internal class TrygdetidServiceTest {
randomUUID(),
Grunnlagsopplysning.Pdl(Tidspunkt.now(), null, null),
Persongalleri(
soeker = SOEKER_FOEDSELSNUMMER.value,
avdoed = listOf(AVDOED_FOEDSELSNUMMER.value),
soeker = SOEKER_FOEDSELSNUMMER,
avdoed = listOf(AVDOED_FOEDSELSNUMMER),
).toJsonNode(),
),
),
Expand Down Expand Up @@ -1656,7 +1656,7 @@ internal class TrygdetidServiceTest {
randomUUID(),
Grunnlagsopplysning.Pdl(Tidspunkt.now(), null, null),
Persongalleri(
soeker = SOEKER_FOEDSELSNUMMER.value,
soeker = SOEKER_FOEDSELSNUMMER,
avdoed = emptyList(),
).toJsonNode(),
),
Expand Down Expand Up @@ -1712,7 +1712,7 @@ internal class TrygdetidServiceTest {
randomUUID(),
Grunnlagsopplysning.Pdl(Tidspunkt.now(), null, null),
Persongalleri(
soeker = SOEKER_FOEDSELSNUMMER.value,
soeker = SOEKER_FOEDSELSNUMMER,
avdoed = emptyList(),
).toJsonNode(),
),
Expand Down Expand Up @@ -2145,7 +2145,7 @@ internal class TrygdetidServiceTest {
randomUUID(),
Grunnlagsopplysning.Pdl(Tidspunkt.now(), null, null),
Persongalleri(
soeker = SOEKER_FOEDSELSNUMMER.value,
soeker = SOEKER_FOEDSELSNUMMER,
avdoed = emptyList(),
).toJsonNode(),
),
Expand Down

0 comments on commit 2be2ff4

Please sign in to comment.