diff --git a/apps/etterlatte-opplysninger-fra-soeknad/src/test/kotlin/no/nav/etterlatte/opplysningerfrasoknad/StartUthentingFraSoeknadRiverTest.kt b/apps/etterlatte-opplysninger-fra-soeknad/src/test/kotlin/no/nav/etterlatte/opplysningerfrasoknad/StartUthentingFraSoeknadRiverTest.kt index 0e6cf7eac7f..df1ef669b7e 100644 --- a/apps/etterlatte-opplysninger-fra-soeknad/src/test/kotlin/no/nav/etterlatte/opplysningerfrasoknad/StartUthentingFraSoeknadRiverTest.kt +++ b/apps/etterlatte-opplysninger-fra-soeknad/src/test/kotlin/no/nav/etterlatte/opplysningerfrasoknad/StartUthentingFraSoeknadRiverTest.kt @@ -47,6 +47,6 @@ internal class StartUthentingFraSoeknadRiverTest { assertEquals(1, inspector.message(0).get(SAK_ID_KEY).intValue()) assertEquals("f525f2f7-e246-43d7-b61a-5f0757472916", inspector.message(0).get(BEHANDLING_ID_KEY).asText()) - assertEquals(11, inspector.message(0).get(OPPLYSNING_KEY).size()) + assertEquals(10, inspector.message(0).get(OPPLYSNING_KEY).size()) } } diff --git a/libs/saksbehandling-common/src/test/kotlin/person/FoedselsnummerTest.kt b/libs/saksbehandling-common/src/test/kotlin/person/FoedselsnummerTest.kt index c135e0f033b..df2cddd2e54 100644 --- a/libs/saksbehandling-common/src/test/kotlin/person/FoedselsnummerTest.kt +++ b/libs/saksbehandling-common/src/test/kotlin/person/FoedselsnummerTest.kt @@ -8,7 +8,6 @@ import org.junit.jupiter.api.Assertions.assertFalse import org.junit.jupiter.api.Test import org.junit.jupiter.api.assertAll import org.junit.jupiter.api.assertThrows -import java.time.LocalDate internal class FoedselsnummerTest { @Test @@ -74,20 +73,6 @@ internal class FoedselsnummerTest { ) } - @Test - fun `fødselsmåned for H-identer finner fødselsdatoer riktig`() { - val hident = Folkeregisteridentifikator.of("18528117224") - val hidentForDnummer = Folkeregisteridentifikator.of("51447721728") - assertEquals(LocalDate.of(1981, 12, 18), hident.getBirthDate()) - assertEquals(LocalDate.of(1977, 4, 11), hidentForDnummer.getBirthDate()) - } - - @Test - fun `fødselsmåned for syntetiske skatteetaten identer finner fødselsdatoer riktig`() { - val skattdent = Folkeregisteridentifikator.of("30901699972") - assertEquals(LocalDate.of(2016, 10, 30), skattdent.getBirthDate()) - } - @Test fun `korrekt logikk for firesifret foedselsnummer fra fnr`() { assertEquals(2019, firesifretAarstallFraTosifret(19, 999)) diff --git a/libs/saksbehandling-common/src/testFixtures/kotlin/etterlatte/grunnlag/TestDataMaps.kt b/libs/saksbehandling-common/src/testFixtures/kotlin/etterlatte/grunnlag/TestDataMaps.kt index eaae93607dc..77c515ff647 100644 --- a/libs/saksbehandling-common/src/testFixtures/kotlin/etterlatte/grunnlag/TestDataMaps.kt +++ b/libs/saksbehandling-common/src/testFixtures/kotlin/etterlatte/grunnlag/TestDataMaps.kt @@ -108,7 +108,6 @@ private fun Folkeregisteridentifikator.isTestNorgeNumber(): Boolean = Character. * * @return 4 digit year of birth as [Int] */ -@Deprecated("Denne er feil og må fases ut til fordel for å hente foedselsdato direkte fra PDL") private fun Folkeregisteridentifikator.getYearOfBirth(): Int { val year = value.slice(4 until 6).toInt() val individnummer = value.slice(6 until 9).toInt()