File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
samples/boot/kotlin/src/test/kotlin/org/springframework/security/samples Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,14 @@ class KotlinApplicationTests {
43
43
fun `index page is not protected` () {
44
44
this .mockMvc.get(" /" )
45
45
.andExpect {
46
- status { isOk }
46
+ status { isOk() }
47
47
}
48
48
}
49
49
50
50
@Test
51
51
fun `protected page redirects to login` () {
52
52
val mvcResult = this .mockMvc.get(" /user/index" )
53
- .andExpect { status { is3xxRedirection } }
53
+ .andExpect { status { is3xxRedirection() } }
54
54
.andReturn()
55
55
56
56
assertThat(mvcResult.response.redirectedUrl).endsWith(" /log-in" )
@@ -79,7 +79,7 @@ class KotlinApplicationTests {
79
79
this .mockMvc.get(" /user/index" ) {
80
80
session = httpSession
81
81
}.andExpect {
82
- status { isOk }
82
+ status { isOk() }
83
83
}
84
84
}
85
85
}
You can’t perform that action at this time.
0 commit comments