File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
backend/src/test/java/de/bund/digitalservice/ris/norms/integration Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
package de .bund .digitalservice .ris .norms .integration ;
2
2
3
- import static org .springframework .security .test .web .servlet .request .SecurityMockMvcRequestPostProcessors .user ;
4
3
import static org .springframework .test .web .servlet .request .MockMvcRequestBuilders .get ;
5
4
import static org .springframework .test .web .servlet .result .MockMvcResultMatchers .*;
6
5
@@ -24,10 +23,10 @@ void noAccessIfNotLoggedIn() throws Exception {
24
23
}
25
24
26
25
@ Test
27
- void userShouldBeRedirectedOnLogout () throws Exception {
26
+ void userShouldBeRedirectedToLogin () throws Exception {
28
27
// when
29
28
mvc
30
- .perform (get ("/logout" ). with ( user ( "user" ) ).accept (MediaType .TEXT_HTML ))
29
+ .perform (get ("/amending-laws" ).accept (MediaType .TEXT_HTML ))
31
30
// then
32
31
.andExpect (status ().is3xxRedirection ());
33
32
}
You can’t perform that action at this time.
0 commit comments