@@ -136,7 +136,7 @@ public void testSimpleInvalidActionRequest() throws Exception {
136136 simpleDispatcherPortlet .processAction (request , response );
137137 String exceptionParam = response .getRenderParameter (DispatcherPortlet .ACTION_EXCEPTION_RENDER_PARAMETER );
138138 assertNotNull (exceptionParam );
139- assertTrue (exceptionParam .startsWith (UnavailableException .class .getName ()));
139+ assertTrue (exceptionParam .startsWith (NoHandlerFoundException .class .getName ()));
140140 }
141141
142142 public void testSimpleFormViewNoBindOnNewForm () throws Exception {
@@ -246,7 +246,7 @@ public void testSimpleInvalidRenderRequest() throws Exception {
246246 simpleDispatcherPortlet .doDispatch (request , response );
247247 fail ("Should have thrown UnavailableException" );
248248 }
249- catch (UnavailableException ex ) {
249+ catch (NoHandlerFoundException ex ) {
250250 // expected
251251 }
252252 }
@@ -279,7 +279,7 @@ public void testPortletModeParameterMappingInvalidHelpActionRequest() throws Exc
279279 complexDispatcherPortlet .processAction (request , response );
280280 String exceptionParam = response .getRenderParameter (DispatcherPortlet .ACTION_EXCEPTION_RENDER_PARAMETER );
281281 assertNotNull (exceptionParam );
282- assertTrue (exceptionParam .startsWith (UnavailableException .class .getName ()));
282+ assertTrue (exceptionParam .startsWith (NoHandlerFoundException .class .getName ()));
283283 }
284284
285285 public void testPortletModeParameterMappingInvalidHelpRenderRequest () throws Exception {
@@ -289,7 +289,7 @@ public void testPortletModeParameterMappingInvalidHelpRenderRequest() throws Exc
289289 request .setParameter ("action" , "help3" );
290290 complexDispatcherPortlet .doDispatch (request , response );
291291 Map model = (Map ) request .getAttribute (ViewRendererServlet .MODEL_ATTRIBUTE );
292- assertTrue (model .get ("exception" ).getClass ().equals (UnavailableException .class ));
292+ assertTrue (model .get ("exception" ).getClass ().equals (NoHandlerFoundException .class ));
293293 InternalResourceView view = (InternalResourceView ) request .getAttribute (ViewRendererServlet .VIEW_ATTRIBUTE );
294294 assertEquals ("failed-unavailable" , view .getBeanName ());
295295 }
@@ -405,7 +405,7 @@ public void testNoDetectAllHandlerMappingsWithPortletModeActionRequest() throws
405405 complexDispatcherPortlet .processAction (request , response );
406406 String exceptionParam = response .getRenderParameter (DispatcherPortlet .ACTION_EXCEPTION_RENDER_PARAMETER );
407407 assertNotNull (exceptionParam );
408- assertTrue (exceptionParam .startsWith (UnavailableException .class .getName ()));
408+ assertTrue (exceptionParam .startsWith (NoHandlerFoundException .class .getName ()));
409409 }
410410
411411 public void testNoDetectAllHandlerMappingsWithParameterRenderRequest () throws Exception {
@@ -420,7 +420,7 @@ public void testNoDetectAllHandlerMappingsWithParameterRenderRequest() throws Ex
420420 complexDispatcherPortlet .doDispatch (request , response );
421421 Map model = (Map ) request .getAttribute (ViewRendererServlet .MODEL_ATTRIBUTE );
422422 Exception exception = (Exception ) model .get ("exception" );
423- assertTrue (exception .getClass ().equals (UnavailableException .class ));
423+ assertTrue (exception .getClass ().equals (NoHandlerFoundException .class ));
424424 InternalResourceView view = (InternalResourceView ) request .getAttribute (ViewRendererServlet .VIEW_ATTRIBUTE );
425425 assertEquals ("failed-unavailable" , view .getBeanName ());
426426 }
@@ -900,9 +900,9 @@ public void testInvalidRenderRequestWithExistingThreadLocalRequestContext() thro
900900
901901 try {
902902 simpleDispatcherPortlet .doDispatch (request , response );
903- fail ("should have failed to find a handler and raised an UnavailableException " );
903+ fail ("should have failed to find a handler and raised an NoHandlerFoundExceptionException " );
904904 }
905- catch (UnavailableException ex ) {
905+ catch (NoHandlerFoundException ex ) {
906906 // expected
907907 }
908908
0 commit comments