1
0
mirror of synced 2026-08-05 17:57:15 +00:00

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
2 changed files with 4 additions and 4 deletions
@@ -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() }
}
}
}