Skip to content

Commit 1f55911

Browse files
committed
Update to Kotlin 1.4.20
Closes gh-9249
1 parent 0a95d3c commit 1f55911

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ gaeVersion=1.9.82
33
springJavaformatVersion=0.0.25
44
springBootVersion=2.4.0
55
version=5.4.2-SNAPSHOT
6-
kotlinVersion=1.4.10
6+
kotlinVersion=1.4.20
77
org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError
88
org.gradle.parallel=true
99
org.gradle.caching=true

samples/boot/kotlin/src/test/kotlin/org/springframework/security/samples/KotlinApplicationTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ class KotlinApplicationTests {
4343
fun `index page is not protected`() {
4444
this.mockMvc.get("/")
4545
.andExpect {
46-
status { isOk }
46+
status { isOk() }
4747
}
4848
}
4949

5050
@Test
5151
fun `protected page redirects to login`() {
5252
val mvcResult = this.mockMvc.get("/user/index")
53-
.andExpect { status { is3xxRedirection } }
53+
.andExpect { status { is3xxRedirection() } }
5454
.andReturn()
5555

5656
assertThat(mvcResult.response.redirectedUrl).endsWith("/log-in")
@@ -79,7 +79,7 @@ class KotlinApplicationTests {
7979
this.mockMvc.get("/user/index") {
8080
session = httpSession
8181
}.andExpect {
82-
status { isOk }
82+
status { isOk() }
8383
}
8484
}
8585
}

0 commit comments

Comments
 (0)