use of org.springframework.web.servlet.NoHandlerFoundException in project spring-framework by spring-projects.
the class ResponseEntityExceptionHandlerTests method noHandlerFoundException.
@Test
public void noHandlerFoundException() {
ServletServerHttpRequest req = new ServletServerHttpRequest(new MockHttpServletRequest("GET", "/resource"));
Exception ex = new NoHandlerFoundException(req.getMethod().toString(), req.getServletRequest().getRequestURI(), req.getHeaders());
testException(ex);
}
Aggregations