This reverts commit 4638e1e428ee2ddab234199eb3b67b9c94dfa08b.
@@ -53,7 +53,7 @@ class KotlinWebfluxApplicationTests {
.expectHeader().valueEquals("Location", "/log-in")
}
-// @Test
+ @Test
@WithMockUser
fun `protected page can be accessed when authenticated`() {
this.rest.get()
@@ -67,7 +67,7 @@ class KotlinApplicationTests {
.andExpect(status().is3xxRedirection)
fun `logged in user can access protected page`() {
val mvcResult = this.mockMvc.perform(formLogin("/log-in").user("user").password("password"))
.andExpect(authenticated()).andReturn()