HttpStatusServerAccessDeniedHandler write error message

This commit is contained in:
Rob Winch
2017-10-28 21:44:46 -05:00
parent 77acb34bcd
commit 192776858d
3 changed files with 21 additions and 9 deletions

View File

@@ -77,8 +77,7 @@ public class HelloWebfluxMethodApplicationTests {
.uri("/message")
.attributes(robsCredentials())
.exchange()
.expectStatus().isEqualTo(HttpStatus.FORBIDDEN)
.expectBody().isEmpty();
.expectStatus().isEqualTo(HttpStatus.FORBIDDEN);
}
@Test
@@ -101,8 +100,7 @@ public class HelloWebfluxMethodApplicationTests {
.get()
.uri("/message")
.exchange()
.expectStatus().isEqualTo(HttpStatus.FORBIDDEN)
.expectBody().isEmpty();
.expectStatus().isEqualTo(HttpStatus.FORBIDDEN);
}
@Test
@@ -125,8 +123,7 @@ public class HelloWebfluxMethodApplicationTests {
.get()
.uri("/message")
.exchange()
.expectStatus().isEqualTo(HttpStatus.FORBIDDEN)
.expectBody().isEmpty();
.expectStatus().isEqualTo(HttpStatus.FORBIDDEN);
}
@Test