add entry points (#1413)

This commit is contained in:
lor6
2017-03-15 14:11:37 +02:00
committed by Eugen
parent f6e570c6ca
commit 21aa12753d
7 changed files with 118 additions and 12 deletions

View File

@@ -46,9 +46,9 @@ public class MultipleEntryPointsTest {
@Test
public void whenTestUserCredentials_thenOk() throws Exception {
mockMvc.perform(get("/user/myUserPage")).andExpect(status().isFound());
mockMvc.perform(get("/user/general/myUserPage")).andExpect(status().isFound());
mockMvc.perform(get("/user/myUserPage").with(user("user").password("userPass").roles("USER"))).andExpect(status().isOk());
mockMvc.perform(get("/user/general/myUserPage").with(user("user").password("userPass").roles("USER"))).andExpect(status().isOk());
mockMvc.perform(get("/admin/myAdminPage").with(user("user").password("userPass").roles("USER"))).andExpect(status().isForbidden());
}