Skip to content

Commit

Permalink
Added test for ny class.
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvind-wedoe committed Jul 23, 2024
1 parent 1ae6a1d commit 91b4aef
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/kotlin/no/nav/klage/kodeverk/KodeverkTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,25 @@ internal class KodeverkTest {
it.value.size > 1
}).isEmpty()
}

@Test
fun `TimeUnitType has no duplicate values`() {
assertThat(TimeUnitType.entries.groupBy {
it.id
}.filter {
it.value.size > 1
}).isEmpty()

assertThat(TimeUnitType.entries.groupBy {
it.navn
}.filter {
it.value.size > 1
}).isEmpty()

assertThat(TimeUnitType.entries.groupBy {
it.beskrivelse
}.filter {
it.value.size > 1
}).isEmpty()
}
}

0 comments on commit 91b4aef

Please sign in to comment.