Skip to content

Commit

Permalink
Fix test-assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-meidell committed Nov 5, 2023
1 parent ca18a40 commit f3176aa
Showing 1 changed file with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,12 @@ class PersongrunnlagMeldingServiceTest : SpringContextTest.NoKafka() {
it.grunnlag.data.associate { it.omsorgsyter to it.antall() }
)
}
assertEquals(emptyList<Oppgaveopplysninger>(), behandling.hentOppgaveopplysninger())
assertEquals(
listOf(
Oppgaveopplysninger.Ingen
),
behandling.hentOppgaveopplysninger()
)
}
}

Expand Down Expand Up @@ -1154,10 +1159,18 @@ class PersongrunnlagMeldingServiceTest : SpringContextTest.NoKafka() {
it.grunnlag.data.associate { it.omsorgsyter to it.antall() }
)
}
assertInstanceOf(
Oppgaveopplysninger.ToOmsorgsytereMedLikeMangeMånederOmsorg::class.java//forventer oppgave siden omsorgsyter mokkok i desember
, behandling.hentOppgaveopplysninger()
)//TODO
assertEquals(
listOf(
Oppgaveopplysninger.ToOmsorgsytereMedLikeMangeMånederOmsorg(
oppgaveMottaker = "12345678910",
annenOmsorgsyter = "04010012797",
omsorgsmottaker = "01122012345",
omsorgsår = 2020

)
),
behandling.hentOppgaveopplysninger()
)
}
}

Expand Down

0 comments on commit f3176aa

Please sign in to comment.