Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
t konverter ArbeidsforholdMapperTest til Kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
jrtm committed Jul 20, 2021
1 parent 7d70f0b commit 942dbfb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 27 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package no.nav.fo.veilarbregistrering.arbeidsforhold.resources

import no.nav.fo.veilarbregistrering.arbeidsforhold.Arbeidsforhold
import org.assertj.core.api.SoftAssertions
import org.junit.jupiter.api.Test
import java.time.LocalDate

class ArbeidsforholdMapperTest {

@Test
fun `skal mappe alle verdier`() {
val fom = LocalDate.of(2017, 12, 1)
val tom = LocalDate.of(2017, 12, 30)
val arbeidsforhold = Arbeidsforhold("453542352", "STK", fom, tom, null)
val arbeidsforholdDto = ArbeidsforholdMapper.map(arbeidsforhold)
val softAssertions = SoftAssertions()
softAssertions.assertThat(arbeidsforholdDto.arbeidsgiverOrgnummer).isEqualTo("453542352")
softAssertions.assertThat(arbeidsforholdDto.styrk).isEqualTo("STK")
softAssertions.assertThat(arbeidsforholdDto.fom).isEqualTo(fom)
softAssertions.assertThat(arbeidsforholdDto.tom).isEqualTo(tom)
softAssertions.assertAll()
}
}

0 comments on commit 942dbfb

Please sign in to comment.