Skip to content

Commit

Permalink
Legge inn kilde for Sivilstand
Browse files Browse the repository at this point in the history
  • Loading branch information
s148719 committed Nov 17, 2023
1 parent 9865e05 commit 1c7b7e5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum class BoStatusType {

@Schema(enumAsRef = true)
enum class Kilde {
MANUELL,
MANUELT,
OFFENTLIG,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class HusstandsBarnPeriode(
val datoTom: Date?,
@Enumerated(EnumType.STRING)
val boStatus: BoStatusType?,
val kilde: String,
@Enumerated(EnumType.STRING)
val kilde: Kilde,
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
val id: Long? = null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package no.nav.bidrag.behandling.controller

import no.nav.bidrag.behandling.database.datamodell.BoStatusType
import no.nav.bidrag.behandling.database.datamodell.Kilde
import no.nav.bidrag.behandling.dto.behandling.CreateBehandlingResponse
import no.nav.bidrag.behandling.dto.behandling.CreateRolleRolleType
import no.nav.bidrag.behandling.dto.boforhold.BoforholdResponse
Expand Down Expand Up @@ -37,7 +38,8 @@ class BoforholdControllerTest : KontrollerTestRunner() {

// 2.1 Prepare husstandsBarn

val perioder = setOf(HusstandsBarnPeriodeDto(null, null, null, BoStatusType.IKKE_REGISTRERT_PA_ADRESSE, "offentlig"))
val perioder =
setOf(HusstandsBarnPeriodeDto(null, null, null, BoStatusType.IKKE_REGISTRERT_PA_ADRESSE, Kilde.OFFENTLIG))
val husstandsBarn = setOf(HusstandsbarnDto(behandling.body!!.id, true, perioder, "ident", null))

// 2.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import no.nav.bidrag.behandling.database.datamodell.Behandling
import no.nav.bidrag.behandling.database.datamodell.Behandlingstype
import no.nav.bidrag.behandling.database.datamodell.ForskuddAarsakType
import no.nav.bidrag.behandling.database.datamodell.Inntekt
import no.nav.bidrag.behandling.database.datamodell.Kilde
import no.nav.bidrag.behandling.database.datamodell.Rolle
import no.nav.bidrag.behandling.database.datamodell.SivilstandType
import no.nav.bidrag.behandling.database.datamodell.SoknadType
Expand Down Expand Up @@ -128,6 +129,7 @@ class BehandlingServiceTest : TestContainerRunner() {
Calendar.getInstance().time.toLocalDate(),
Calendar.getInstance().time.toLocalDate(),
SivilstandType.BOR_ALENE_MED_BARN,
Kilde.OFFENTLIG,
),
)

Expand Down

0 comments on commit 1c7b7e5

Please sign in to comment.