Skip to content

Commit

Permalink
fix: Adjust for Spring Boot using AuthorizationDenied instead of Acce…
Browse files Browse the repository at this point in the history
…ssDenied
  • Loading branch information
wimdeblauwe committed Sep 12, 2024
1 parent 3e8684f commit 205c388
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void testForbiddenViaSecuredAnnotation() throws Exception {
mockMvc.perform(get("/test/spring-security/admin"))
.andExpect(status().isForbidden())
.andExpect(header().string("Content-Type", "application/json"))
.andExpect(jsonPath("code").value("ACCESS_DENIED"))
.andExpect(jsonPath("code").value("AUTHORIZATION_DENIED"))
.andExpect(jsonPath("message").value("Access Denied"));
}

Expand Down

0 comments on commit 205c388

Please sign in to comment.