Skip to content
Snippets Groups Projects
Commit bcd1ea3a authored by Zain Munshi's avatar Zain Munshi
Browse files

fixed tests

parent c31ce0b8
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ public class searchPageTests {
@WithMockUser(username = "staff", authorities = {"STAFF"})
public void shouldReturnSingleComplaintItem() throws Exception {
MvcResult result = mvc
.perform(post("/search/processQuery").with(csrf()).param("policyId", "2").param("policyNumber","").param("title",""))
.perform(post("/staff/search/processQuery").with(csrf()).param("policyId", "2").param("policyNumber","").param("title",""))
.andExpect(status().isOk())
.andReturn();
......@@ -70,7 +70,7 @@ public class searchPageTests {
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
MvcResult result = mvc
.perform(post("/search/processQuery").with(csrf()).param("policyId", "").param("policyNumber","user").param("title",""))
.perform(post("/staff/search/processQuery").with(csrf()).param("policyId", "").param("policyNumber","user").param("title",""))
.andExpect(status().isOk())
.andReturn();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment