Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Nov 15, 2022
1 parent 10f4ad1 commit 09a58a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void customExceptionToProblemDetailViaMessageSource() {
.acceptLanguageAsLocales(locale).build());

ResponseEntity<?> responseEntity =
this.exceptionHandler.handleException(new IllegalStateException(), exchange).block();
this.exceptionHandler.handleException(new IllegalStateException("test"), exchange).block();

ProblemDetail body = (ProblemDetail) responseEntity.getBody();
assertThat(body.getDetail()).isEqualTo("Invalid state: A");
Expand Down

0 comments on commit 09a58a5

Please sign in to comment.