use of org.springframework.web.context.request.async.AsyncRequestTimeoutException in project spring-framework by spring-projects.
the class DefaultHandlerExceptionResolverTests method handleAsyncRequestTimeoutException.
// SPR-14669
@Test
public void handleAsyncRequestTimeoutException() throws Exception {
Exception ex = new AsyncRequestTimeoutException();
ModelAndView mav = exceptionResolver.resolveException(request, response, null, ex);
assertThat(mav).as("No ModelAndView returned").isNotNull();
assertThat(mav.isEmpty()).as("No Empty ModelAndView returned").isTrue();
assertThat(response.getStatus()).as("Invalid status code").isEqualTo(503);
}
Aggregations