Skip to content

Commit 54537f1

Browse files
authored
Merge pull request #167 from navikt/manual-dep-updates
update: gradle wrapper. jackson and kotest
2 parents af7fff9 + 4fb5839 commit 54537f1

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ val kotlinLoggingVersion = "2.1.21"
66
val logbackVersion = "1.2.10"
77
val nimbusSdkVersion = "9.20.1"
88
val mockWebServerVersion = "4.9.3"
9-
val jacksonVersion = "2.13.0"
9+
val jacksonVersion = "2.13.1"
1010
val nettyVersion = "4.1.72.Final"
1111
val junitJupiterVersion = "5.8.2"
1212
val kotlinVersion = "1.6.10"
1313
val freemarkerVersion = "2.3.31"
14-
val kotestVersion = "4.6.3"
14+
val kotestVersion = "5.0.3"
1515
val bouncyCastleVersion = "1.70"
1616
val springBootVersion = "2.6.2"
1717
val reactorTestVersion = "3.4.13"
@@ -262,6 +262,6 @@ tasks {
262262
}
263263

264264
withType<Wrapper> {
265-
gradleVersion = "7.1.1"
265+
gradleVersion = "7.3.3"
266266
}
267267
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/test/kotlin/no/nav/security/mock/oauth2/OAuth2ConfigTest.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ internal class OAuth2ConfigTest {
115115
val withSkew = value.toInstant().plus(skew)
116116
return MatcherResult(
117117
withSkew.isAfter(now),
118-
"Date $withSkew should be after $now",
119-
"Date $withSkew should not be after $now"
118+
{ "Date $withSkew should be after $now" },
119+
{
120+
"Date $withSkew should not be after $now"
121+
}
120122
)
121123
}
122124
}

src/test/kotlin/no/nav/security/mock/oauth2/testutils/Token.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,18 @@ fun verifyWith(
9494
value.verifyWith(server.issuerUrl(issuerId), server.jwksUrl(issuerId), requiredClaims)
9595
MatcherResult(
9696
true,
97-
"should not happen, famous last words",
98-
"JWT should not verify, expected exception."
97+
{ "should not happen, famous last words" },
98+
{
99+
"JWT should not verify, expected exception."
100+
}
99101
)
100102
} catch (e: Exception) {
101103
MatcherResult(
102104
false,
103-
"${e.message}",
104-
"JWT should not verify, expected exception."
105+
{ "${e.message}" },
106+
{
107+
"JWT should not verify, expected exception."
108+
}
105109
)
106110
}
107111
}

0 commit comments

Comments
 (0)