This commit is contained in:
Stephane Nicoll
2022-11-15 20:10:03 +01:00
parent 10f4ad1a44
commit 09a58a55bf

View File

@@ -172,7 +172,7 @@ public class ResponseEntityExceptionHandlerTests {
.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");