소스 검색

Update to Kotlin 1.4.20

Closes gh-9249
Josh Cummings 4 년 전
부모
커밋
1f5591198e
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      gradle.properties
  2. 3 3
      samples/boot/kotlin/src/test/kotlin/org/springframework/security/samples/KotlinApplicationTests.kt

+ 1 - 1
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

+ 3 - 3
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() }
         }
     }
 }