File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
samples/boot/kotlin/src/test/kotlin/org/springframework/security/samples Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ gaeVersion=1.9.82
3
3
springJavaformatVersion =0.0.25
4
4
springBootVersion =2.4.0
5
5
version =5.4.2-SNAPSHOT
6
- kotlinVersion =1.4.10
6
+ kotlinVersion =1.4.20
7
7
org.gradle.jvmargs =-Xmx3g -XX:MaxPermSize =2048m -XX:+HeapDumpOnOutOfMemoryError
8
8
org.gradle.parallel =true
9
9
org.gradle.caching =true
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