You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Neil Griffin (JIRA)" <ji...@apache.org> on 2018/01/04 17:16:00 UTC
[jira] [Created] (PLUTO-675) TCK: Improve
V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName1 and
V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName2
Neil Griffin created PLUTO-675:
----------------------------------
Summary: TCK: Improve V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName1 and V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName2
Key: PLUTO-675
URL: https://issues.apache.org/jira/browse/PLUTO-675
Project: Pluto
Issue Type: Bug
Components: tck
Affects Versions: 3.0.0
Reporter: Neil Griffin
Assignee: Scott Nicklous
Fix For: 3.0.1
The V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName1 and V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName2 tests in the Portlet 3.0 TCK verify that the value of {{PortletContext.getPortletContextName()}} equals {{"javax.portlet-tck-EnvironmentTests"}} which is the value found in the {{<display-name>...</display-name>}} element of the WEB-INF/web.xml descriptor.
Rather than hard-coding the string constant {{"javax.portlet-tck-EnvironmentTests"}}, the aforementioned TCK tests should be improved so that the actual value of the {{<display-name>...</display-name>}} element is parsed from the WEB-INF/web.xml descriptor.
This improvement is very simple to make, since the TCK already scans the classpath for the WEB-INF/web.xml descriptor as part of the {{WebConfigScanner}} and {{WebConfigParser}} mechanism.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)