|
1 | 1 | /* |
2 | | - * Copyright 2002-2009 the original author or authors. |
| 2 | + * Copyright 2002-2010 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
32 | 32 | import javax.portlet.PortletSession; |
33 | 33 | import javax.portlet.RenderRequest; |
34 | 34 | import javax.portlet.RenderResponse; |
35 | | -import javax.portlet.UnavailableException; |
36 | 35 | import javax.servlet.http.HttpServletRequest; |
37 | 36 | import javax.servlet.http.HttpServletResponse; |
38 | 37 |
|
|
73 | 72 | import org.springframework.web.context.support.GenericWebApplicationContext; |
74 | 73 | import org.springframework.web.portlet.DispatcherPortlet; |
75 | 74 | import org.springframework.web.portlet.ModelAndView; |
| 75 | +import org.springframework.web.portlet.NoHandlerFoundException; |
76 | 76 | import org.springframework.web.portlet.context.StaticPortletApplicationContext; |
77 | 77 | import org.springframework.web.portlet.mvc.AbstractController; |
78 | 78 | import org.springframework.web.servlet.View; |
@@ -382,9 +382,9 @@ protected ApplicationContext createPortletApplicationContext(ApplicationContext |
382 | 382 | MockRenderResponse response = new MockRenderResponse(); |
383 | 383 | try { |
384 | 384 | portlet.render(request, response); |
385 | | - fail("Should have thrown UnavailableException"); |
| 385 | + fail("Should have thrown NoHandlerFoundException"); |
386 | 386 | } |
387 | | - catch (UnavailableException ex) { |
| 387 | + catch (NoHandlerFoundException ex) { |
388 | 388 | // expected |
389 | 389 | } |
390 | 390 |
|
|
0 commit comments