|
|
|
|
@ -172,7 +172,7 @@ class ExceptionHandlerExceptionResolverTests {
@@ -172,7 +172,7 @@ class ExceptionHandlerExceptionResolverTests {
|
|
|
|
|
@Test |
|
|
|
|
void resolveNoExceptionHandlerForException() throws NoSuchMethodException { |
|
|
|
|
Exception npe = new NullPointerException(); |
|
|
|
|
HandlerMethod handlerMethod = new HandlerMethod(new IoExceptionController(), "handle"); |
|
|
|
|
HandlerMethod handlerMethod = new HandlerMethod(new IOExceptionController(), "handle"); |
|
|
|
|
this.resolver.afterPropertiesSet(); |
|
|
|
|
ModelAndView mav = this.resolver.resolveException(this.request, this.response, handlerMethod, npe); |
|
|
|
|
|
|
|
|
|
@ -540,7 +540,7 @@ class ExceptionHandlerExceptionResolverTests {
@@ -540,7 +540,7 @@ class ExceptionHandlerExceptionResolverTests {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Controller |
|
|
|
|
static class IoExceptionController { |
|
|
|
|
static class IOExceptionController { |
|
|
|
|
|
|
|
|
|
public void handle() {} |
|
|
|
|
|
|
|
|
|
|