Skip to content

Commit 90dd31c

Browse files
kwondh5217sjohnr
authored andcommitted
Replace dynamic error message with static "Access Denied"
Closes gh-16514 Signed-off-by: Daeho Kwon <[email protected]>
1 parent 24b7287 commit 90dd31c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/src/test/java/org/springframework/security/test/web/reactive/server/SecurityMockServerConfigurersTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void csrfWhenMutateWithThenDisablesCsrf() {
136136
.expectStatus()
137137
.isEqualTo(HttpStatus.FORBIDDEN)
138138
.expectBody()
139-
.consumeWith((b) -> assertThat(new String(b.getResponseBody())).contains("CSRF"));
139+
.consumeWith((b) -> assertThat(new String(b.getResponseBody())).contains("Access Denied"));
140140
this.client.mutateWith(SecurityMockServerConfigurers.csrf()).post().exchange().expectStatus().isOk();
141141
}
142142

0 commit comments

Comments
 (0)