[jira] [Created] (PLUTO-675) TCK: Improve V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName1 and V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName2

"Neil Griffin (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.devel
Message-ID <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.