-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/TFP-5900
- Loading branch information
Showing
14 changed files
with
218 additions
and
72 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
25 changes: 25 additions & 0 deletions
25
...istorikk/kalkulus/FastsettBGTidsbegrensetArbeidsforholdHistorikkKalkulusTjenesteTest.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.foreldrepenger.domene.rest.historikk.kalkulus; | ||
|
||
import static no.nav.foreldrepenger.domene.rest.historikk.kalkulus.FastsettBGTidsbegrensetArbeidsforholdHistorikkKalkulusTjeneste.oppdaterFrilansInntektVedEndretVerdi; | ||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import java.math.BigDecimal; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
class FastsettBGTidsbegrensetArbeidsforholdHistorikkKalkulusTjenesteTest { | ||
|
||
@Test | ||
void lik_verdi_frilansinntekt() { | ||
var builder = oppdaterFrilansInntektVedEndretVerdi(BigDecimal.valueOf(1000), 1000); | ||
assertThat(builder).hasSize(2); | ||
assertThat(builder.getFirst().tilTekst()).isEqualTo("__Frilansinntekt__ er satt til __1000__"); | ||
} | ||
|
||
@Test | ||
void ulik_verdi_frilansinntekt() { | ||
var builder = oppdaterFrilansInntektVedEndretVerdi(BigDecimal.valueOf(1000), 2000); | ||
assertThat(builder).hasSize(2); | ||
assertThat(builder.getFirst().tilTekst()).isEqualTo("__Frilansinntekt__ er endret fra 1000 til __2000__"); | ||
} | ||
} |
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
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
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
Oops, something went wrong.