Skip to content

Commit

Permalink
Fiks test
Browse files Browse the repository at this point in the history
  • Loading branch information
johatr committed Feb 14, 2025
1 parent 3aeb7ec commit 842bdd1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class VeilarbarenaClientImplTest {
"navKontor": "$TEST_NAVKONTOR"
}
"""
val stubMapping = WireMock.stubFor(
WireMock.givenThat(
WireMock.post(WireMock.urlEqualTo("/api/v3/hent-oppfolgingsbruker"))
.withRequestBody(WireMock.equalToJson("{\"fnr\":\"$TEST_FNR\"}"))
.willReturn(
Expand All @@ -93,10 +93,8 @@ class VeilarbarenaClientImplTest {
)

veilarbarenaClient.hentOppfolgingsbruker(TEST_FNR)
veilarbarenaClient.oppdaterOppfolgingsbruker(TEST_FNR, TEST_OPPDATERT_NAVKONTOR)
WireMock.removeStub(stubMapping)
val oppdatertOppfolgingsbruker = veilarbarenaClient.oppdaterOppfolgingsbruker(TEST_FNR, TEST_OPPDATERT_NAVKONTOR)

val oppdatertOppfolgingsbruker = veilarbarenaClient.hentOppfolgingsbruker(TEST_FNR)
assertEquals(TEST_OPPDATERT_NAVKONTOR, oppdatertOppfolgingsbruker.get().navKontor)

}
Expand Down

0 comments on commit 842bdd1

Please sign in to comment.