Default webmvc handling of disconnected client errors
Closes gh-33753
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user