This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
t konverter ArbeidsforholdMapperTest til Kotlin
- Loading branch information
Showing
2 changed files
with
23 additions
and
27 deletions.
There are no files selected for viewing
27 changes: 0 additions & 27 deletions
27
...java/no/nav/fo/veilarbregistrering/arbeidsforhold/resources/ArbeidsforholdMapperTest.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...t/java/no/nav/fo/veilarbregistrering/arbeidsforhold/resources/ArbeidsforholdMapperTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} | ||
} |