ResponseStatusException sets detail from reason again

Closes gh-29567
This commit is contained in:
rstoyanchev
2022-11-24 12:40:25 +00:00
parent 284cf3ecf2
commit a27f2e994b
7 changed files with 11 additions and 10 deletions

View File

@@ -316,7 +316,7 @@ public class ErrorResponseExceptionTests {
ServerErrorException ex = new ServerErrorException("Failure", null);
assertStatus(ex, HttpStatus.INTERNAL_SERVER_ERROR);
assertDetail(ex, null);
assertDetail(ex, "Failure");
assertDetailMessageCode(ex, null, new Object[] {ex.getReason()});
assertThat(ex.getHeaders()).isEmpty();