mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Default webmvc handling of disconnected client errors
Closes gh-33753
This commit is contained in:
+1
@@ -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