Skip to content

Commit

Permalink
Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kaja-nav committed Feb 28, 2024
1 parent dada580 commit a13fc7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BrukerTilgangControllerTest : FunSpec({
val invalidFnr = "123"

beforeTest {
every { contextHolder.tokenValidationContext } returns mockTokenValidationContext
every { contextHolder.getTokenValidationContext() } returns mockTokenValidationContext
every { mockTokenValidationContext.getClaims(TokenXUtil.TokenXIssuer.TOKENX) } returns mockJwtTokenClaims
every { mockJwtTokenClaims.getStringClaim("pid") } returns validFnr
every { mockJwtTokenClaims.getStringClaim("client_id") } returns "clientId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class KontaktinfoControllerTest : FunSpec({
val invalidFnr = "123"

beforeTest {
every { contextHolder.tokenValidationContext } returns mockTokenValidationContext
every { contextHolder.getTokenValidationContext() } returns mockTokenValidationContext
every { mockTokenValidationContext.getClaims(TOKENX) } returns mockJwtTokenClaims
every { mockJwtTokenClaims.getStringClaim("pid") } returns validFnr
every { mockJwtTokenClaims.getStringClaim("client_id") } returns "clientId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class NarmesteLederClientTest : FunSpec({
listener(WireMockListener(isnarmestelederServer, ListenerMode.PER_TEST))

beforeTest {
every { contextHolder.tokenValidationContext } returns mockTokenValidationContext
every { contextHolder.getTokenValidationContext() } returns mockTokenValidationContext
every { mockTokenValidationContext.getClaims(TokenXUtil.TokenXIssuer.TOKENX) } returns mockJwtTokenClaims
every { mockJwtTokenClaims.getStringClaim("pid") } returns ansattFnr
every { mockJwtTokenClaims.getStringClaim("client_id") } returns "clientId"
Expand Down

0 comments on commit a13fc7e

Please sign in to comment.