Skip to content

Commit

Permalink
Remove unused slashes/mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
dhlevi committed Nov 23, 2024
1 parent 3355606 commit d44952f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void testGetProgramArea() throws Exception {

when(programAreaService.getAllProgramAreas()).thenReturn(programAreaModel);

mockMvc.perform(get("/programAreas/")
mockMvc.perform(get("/programAreas")
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isOk());

Expand Down Expand Up @@ -93,7 +93,7 @@ void testCreateUpdateProgramArea() throws Exception {

json = gson.toJson(programArea);

mockMvc.perform(put("/programAreas/")
mockMvc.perform(put("/programAreas/{id}")
.content(json)
.contentType(MediaType.APPLICATION_JSON)
.header("Authorization", "Bearer admin-token"))
Expand All @@ -108,7 +108,7 @@ void testDeleteProgramArea() throws Exception {

String json = gson.toJson(programArea);

mockMvc.perform(post("/programAreas/")
mockMvc.perform(post("/programAreas")
.content(json)
.contentType(MediaType.APPLICATION_JSON)
.header("Authorization", "Bearer admin-token"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void testGetProjectBoundary() throws Exception {

when(projectBoundaryService.getAllProjectBoundaries()).thenReturn(projectModel);

mockMvc.perform(get("/projectBoundaries/")
mockMvc.perform(get("/projectBoundaries")
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isOk());

Expand Down Expand Up @@ -138,7 +138,7 @@ void testDeleteProjectBoundary() throws Exception {

String json = gson.toJson(project);

mockMvc.perform(post("/projectBoundaries/")
mockMvc.perform(post("/projectBoundaries")
.content(json)
.contentType(MediaType.APPLICATION_JSON)
.header("Authorization", "Bearer admin-token"))
Expand Down

0 comments on commit d44952f

Please sign in to comment.