[ 
https://issues.apache.org/jira/browse/PLUTO-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Neil Griffin closed PLUTO-713.
------------------------------
    Resolution: Fixed

Fixed in commit 
[818d00c22844b02eddadc3beb132f0be97aac553|https://github.com/apache/portals-pluto/commit/818d00c22844b02eddadc3beb132f0be97aac553]

> TCK: Contesting 
> AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI
> ------------------------------------------------------------------------------------
>
>                 Key: PLUTO-713
>                 URL: https://issues.apache.org/jira/browse/PLUTO-713
>             Project: Pluto
>          Issue Type: Bug
>          Components: tck
>    Affects Versions: 3.0.0
>            Reporter: Neil Griffin
>            Assignee: Neil Griffin
>            Priority: Major
>             Fix For: 3.0.1
>
>
> In Section 28.1 of the Portlet 3.0 Specification titled "Portlet Application 
> Configuration", states:
> {quote}"The @PortletApplication is a type annotation that can be applied to 
> any class in the portlet application. It may appear at most once within the 
> portlet application."{quote}
> The problem is that the the Java source for V3AnnotationPortletConfigTests  
> test has two {{@PortletApplication}} annotations.
> {code:java|title= 
> AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI.java}
> @PortletApplication(
>    defaultNamespaceURI = "http://www.apache.org/portals/pluto/portlet-tck_3.0";
> )
> @PortletConfiguration(portletName = 
> "AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI")
> public class 
> AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI 
> implements Portlet {
>     ...
> }
> {code}
> {code:java|title=AnnotationPortletConfigTests_SPEC2_28_EventDeclaration.java}
> @PortletApplication(
>    events = {
>       @EventDefinition(
>          qname = @PortletQName(
>          localPart = 
> "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration_a", 
>          namespaceURI = 
> "http://www.apache.org/portals/pluto/portlet-tck_3.0";), 
>       payloadType = java.lang.String.class
>       ), @EventDefinition(
>          qname = @PortletQName(
>          localPart = 
> "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration_b", 
>          namespaceURI = 
> "http://www.apache.org/portals/pluto/portlet-tck_3.0";), 
>       payloadType = java.lang.String.class
>       )
>    }
> )
> @PortletConfiguration(portletName = 
> "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration")
> public class AnnotationPortletConfigTests_SPEC2_28_EventDeclaration 
> implements Portlet {
>     ...
> }
> {code}
> The proposed fix would be to move the {{defaultNamespaceURI}} attribute from 
> AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI.java to 
> AnnotationPortletConfigTests_SPEC2_28_EventDeclaration.java and then remove 
> the {{@PortletApplication}} annotation from 
> AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI.java



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to