Default webmvc handling of disconnected client errors

Closes gh-33753
This commit is contained in:
rstoyanchev
2024-10-22 15:45:54 +01:00
parent 5271f5b8a1
commit 9252e741e1
3 changed files with 34 additions and 2 deletions

View File

@@ -107,6 +107,7 @@ class ResponseEntityExceptionHandlerTests {
Arrays.stream(DefaultHandlerExceptionResolver.class.getDeclaredMethods())
.filter(method -> method.getName().startsWith("handle") && (method.getParameterCount() == 4))
.filter(method -> !method.getName().equals("handleErrorResponse"))
.filter(method -> !method.getName().equals("handleDisconnectedClientException"))
.map(method -> method.getParameterTypes()[0])
.forEach(exceptionType -> assertThat(annotation.value())
.as("@ExceptionHandler is missing declaration for " + exceptionType.getName())