-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TSFF-1006: Nye UttakArbeidTyper for at aktivitet skal kunne kompenser… (
#586) * TSFF-1006: Nye UttakArbeidTyper for at aktivitet skal kunne kompenseres fullt ut når den faller bort
- Loading branch information
Showing
5 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
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
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
30 changes: 30 additions & 0 deletions
30
...kulator/adapter/vltilregelmodell/kodeverk/MapUttakArbeidTypeTilAktivitetStatusV2Test.java
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,30 @@ | ||
package no.nav.folketrygdloven.kalkulator.adapter.vltilregelmodell.kodeverk; | ||
|
||
import no.nav.folketrygdloven.beregningsgrunnlag.regelmodell.periodisering.AktivitetStatusV2; | ||
|
||
import no.nav.folketrygdloven.kalkulator.modell.svp.AktivitetDto; | ||
|
||
import no.nav.folketrygdloven.kalkulator.modell.typer.InternArbeidsforholdRefDto; | ||
import no.nav.folketrygdloven.kalkulus.kodeverk.UttakArbeidType; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class MapUttakArbeidTypeTilAktivitetStatusV2Test { | ||
|
||
@Test | ||
public void skal_mappe_SN_IKKE_AKTIV_til_SN() { | ||
var aktivitet = new AktivitetDto(null, InternArbeidsforholdRefDto.nullRef(), UttakArbeidType.SELVSTENDIG_NÆRINGSDRIVENDE_IKKE_AKTIV); | ||
var status = MapUttakArbeidTypeTilAktivitetStatusV2.mapAktivitetStatus(aktivitet); | ||
assertEquals(AktivitetStatusV2.SN, status); | ||
} | ||
|
||
@Test | ||
public void skal_mappe_FL_IKKE_AKTIV_til_FL() { | ||
var aktivitet = new AktivitetDto(null, InternArbeidsforholdRefDto.nullRef(), UttakArbeidType.FRILANSER_IKKE_AKTIV); | ||
var status = MapUttakArbeidTypeTilAktivitetStatusV2.mapAktivitetStatus(aktivitet); | ||
assertEquals(AktivitetStatusV2.FL, status); | ||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
...va/no/nav/folketrygdloven/kalkulator/ytelse/utbgradytelse/AktivitetStatusMatcherTest.java
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,25 @@ | ||
package no.nav.folketrygdloven.kalkulator.ytelse.utbgradytelse; | ||
|
||
import no.nav.folketrygdloven.kalkulus.kodeverk.AktivitetStatus; | ||
|
||
import no.nav.folketrygdloven.kalkulus.kodeverk.UttakArbeidType; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class AktivitetStatusMatcherTest { | ||
|
||
@Test | ||
public void skal_mappe_SN_IKKE_AKTIV_til_SN() { | ||
boolean matcher = AktivitetStatusMatcher.matcherStatus(AktivitetStatus.SELVSTENDIG_NÆRINGSDRIVENDE, UttakArbeidType.SELVSTENDIG_NÆRINGSDRIVENDE_IKKE_AKTIV); | ||
assertTrue(matcher, "SN_IKKE_AKTIV skulle matche sevlstendig næringsdrivende"); | ||
} | ||
|
||
@Test | ||
public void skal_mappe_FL_IKKE_AKTIV_til_FL() { | ||
boolean matcher = AktivitetStatusMatcher.matcherStatus(AktivitetStatus.FRILANSER, UttakArbeidType.FRILANSER_IKKE_AKTIV); | ||
assertTrue(matcher, "FL_IKKE_AKTIV skulle matche sevlstendig næringsdrivende"); | ||
} | ||
|
||
} |
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