From 1f5591198eef78a43cffc1559cf7f448fa2f4970 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Wed, 2 Dec 2020 16:35:27 -0700 Subject: [PATCH] Update to Kotlin 1.4.20 Closes gh-9249 --- gradle.properties | 2 +- .../security/samples/KotlinApplicationTests.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index cb50fcc516..7d18f7da61 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ gaeVersion=1.9.82 springJavaformatVersion=0.0.25 springBootVersion=2.4.0 version=5.4.2-SNAPSHOT -kotlinVersion=1.4.10 +kotlinVersion=1.4.20 org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError org.gradle.parallel=true org.gradle.caching=true diff --git a/samples/boot/kotlin/src/test/kotlin/org/springframework/security/samples/KotlinApplicationTests.kt b/samples/boot/kotlin/src/test/kotlin/org/springframework/security/samples/KotlinApplicationTests.kt index e3fea7da73..393bb0f2e2 100644 --- a/samples/boot/kotlin/src/test/kotlin/org/springframework/security/samples/KotlinApplicationTests.kt +++ b/samples/boot/kotlin/src/test/kotlin/org/springframework/security/samples/KotlinApplicationTests.kt @@ -43,14 +43,14 @@ class KotlinApplicationTests { fun `index page is not protected`() { this.mockMvc.get("/") .andExpect { - status { isOk } + status { isOk() } } } @Test fun `protected page redirects to login`() { val mvcResult = this.mockMvc.get("/user/index") - .andExpect { status { is3xxRedirection } } + .andExpect { status { is3xxRedirection() } } .andReturn() assertThat(mvcResult.response.redirectedUrl).endsWith("/log-in") @@ -79,7 +79,7 @@ class KotlinApplicationTests { this.mockMvc.get("/user/index") { session = httpSession }.andExpect { - status { isOk } + status { isOk() } } } }