Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-675

TCK: Improve V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName1 and V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1
    • tck
    • None

    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.

      Attachments

        Activity

          People

            ngriffin7a Neil Griffin (Inactive)
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: