Description
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.