Fix issue reports

Closes gh-18376

Signed-off-by: arianna <arianna.comi03@gmail.com>
This commit is contained in:
arianna 2026-01-16 11:18:38 +01:00 committed by Josh Cummings
parent 0eb5d8f356
commit 8e9480545e

View File

@ -376,14 +376,14 @@ Java::
@WithMockUser(authorities="USER")
@Test
void endpointWhenUserAuthorityThenAuthorized() {
this.mvc.perform(get("/endpoint/jon"))
this.mvc.perform(get("/resource/jon"))
.andExpect(status().isOk());
}
@WithMockUser
@Test
void endpointWhenNotUserAuthorityThenForbidden() {
this.mvc.perform(get("/endpoint/jon"))
this.mvc.perform(get("/resource/jon"))
.andExpect(status().isForbidden());
}
@ -530,7 +530,7 @@ void postWhenWriteAuthorityThenAuthorized() {
@WithMockUser(authorities="read")
@Test
void postWhenNoWriteAuthorityThenForbidden() {
this.mvc.perform(get("/any").with(csrf()))
this.mvc.perform(post("/any").with(csrf()))
.andExpect(status().isForbidden());
}
----