Description
The following tests have a try ... catch} block that assumes JspException will be thrown when invalid values are specified in portlet related tags.
For example:
<portlet:renderURL copyCurrentRenderParameters="invalid"/>
-
V2PortletTagLibraryTests2_SPEC2_26_IncludeJSPRender_actionURL22
-
V2PortletTagLibraryTests2_SPEC2_26_IncludeJSPRender_renderURL22
-
V2PortletTagLibraryTests3_SPEC2_26_IncludeJSPResource_actionURL22
-
V2PortletTagLibraryTests3_SPEC2_26_IncludeJSPResource_renderURL22
Pluto's implementation of portlet:renderURL defines the copyCurrentRenderParameters attribute as a String, whereas Liferay defines it as a boolean. In the case of Liferay, an invalid value like "invalid" is simply coerced to a boolean.
Since there is no requirement in the Portlet 3.0 Spec to throw JspException, recommend that the tests be removed from the TCK.