Update to Kotlin 1.4.20

Closes gh-9249
This commit is contained in:
Josh Cummings 2020-12-02 16:35:27 -07:00
parent 0a95d3cfa8
commit 1f5591198e
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ gaeVersion=1.9.82
springJavaformatVersion=0.0.25 springJavaformatVersion=0.0.25
springBootVersion=2.4.0 springBootVersion=2.4.0
version=5.4.2-SNAPSHOT version=5.4.2-SNAPSHOT
kotlinVersion=1.4.10 kotlinVersion=1.4.20
org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError
org.gradle.parallel=true org.gradle.parallel=true
org.gradle.caching=true org.gradle.caching=true

View File

@ -43,14 +43,14 @@ class KotlinApplicationTests {
fun `index page is not protected`() { fun `index page is not protected`() {
this.mockMvc.get("/") this.mockMvc.get("/")
.andExpect { .andExpect {
status { isOk } status { isOk() }
} }
} }
@Test @Test
fun `protected page redirects to login`() { fun `protected page redirects to login`() {
val mvcResult = this.mockMvc.get("/user/index") val mvcResult = this.mockMvc.get("/user/index")
.andExpect { status { is3xxRedirection } } .andExpect { status { is3xxRedirection() } }
.andReturn() .andReturn()
assertThat(mvcResult.response.redirectedUrl).endsWith("/log-in") assertThat(mvcResult.response.redirectedUrl).endsWith("/log-in")
@ -79,7 +79,7 @@ class KotlinApplicationTests {
this.mockMvc.get("/user/index") { this.mockMvc.get("/user/index") {
session = httpSession session = httpSession
}.andExpect { }.andExpect {
status { isOk } status { isOk() }
} }
} }
} }