Skip to content

Commit

Permalink
SMA-80: tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejFrnka committed Apr 15, 2024
1 parent 5febdad commit e4b71a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ void addNewPlaceShouldReturn403NotAuthenticatedUser() throws Exception {
mockMvc.perform(MockMvcRequestBuilders.post("/api/v1/places/add")
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(placeDTO)))
// Verify that the response status is 403 Forbidden
.andExpect(MockMvcResultMatchers.status().isForbidden());
// Verify that the response status is 401 Forbidden
.andExpect(MockMvcResultMatchers.status().isUnauthorized());
}

@Test
Expand Down

0 comments on commit e4b71a5

Please sign in to comment.