[weld-issues] [JBoss JIRA] Assigned: (CDITCK-70) Issue with org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.ContainerEventTest

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Tue Dec 15 09:20:31 EST 2009


     [ https://jira.jboss.org/jira/browse/CDITCK-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jozef Hartinger reassigned CDITCK-70:
-------------------------------------

    Assignee: Jozef Hartinger


> Issue with org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.ContainerEventTest
> ----------------------------------------------------------------------------------------
>
>                 Key: CDITCK-70
>                 URL: https://jira.jboss.org/jira/browse/CDITCK-70
>             Project: CDI TCK
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.0.0.GA
>         Environment:  JDK 6 u15, GlassFish v3 b72, CDI TCK 1.0.1 RC1
>            Reporter: Jitendra Kotamraju
>            Assignee: Jozef Hartinger
>             Fix For: 1.0.1.CR1, 1.1.0.CR1
>
>
> org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.TestFilter
> --------------------------------------------------------------------------------------------------------------------
> public class TestFilter implements Filter
> {
>   @Inject
>   private Sheep sheep;
>   private boolean injectionPerformedCorrectly = false;
>   private boolean initializerCalled = false;
>   private boolean initCalledAfterInitializer = false;
>   @Inject
>   public void initialize(Sheep sheep) {}
>  
>   public void destroy(){}
>   public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException{}
>   public void init(FilterConfig filterConfig) throws ServletException{}
> }
> AnnotatedType
> -------------------------
> AnnotatedType  extends Annotated {
>   /**
>    * Get the business methods belonging to the class.
>    *
>    * @return the methods, or an empty set if none are defined
>    */
>   public Set<AnnotatedMethod<? super X>> getMethods();
>   /**
>    * Get the fields belonging to the class
>    *
>    * @return the fields, or an empty set if none are defined
>    */
>   public Set<AnnotatedField<? super X>> getFields();
> }
> ContainerEventTest.java
> -----------------------------------------
>   private void validateFilterAnnotatedType(AnnotatedType<TestFilter> type) {
>      assert type.getFields().size() == 2;
>      assert type.getMethods().size() == 3;
>   }
> * The javadoc is not clear what getMethods() and getFields() supposed to return. Do they supposed to return all methods and fields or only with @Inject annotation ? Either way, the number of fields should be 4 or 1. So the assertion doesn't seem correct to me.
> Other testcases affected are:
> testProcessAnnotatedTypeEventFiredForFilter
> testProcessAnnotatedTypeEventFiredForJsfManagedBean
> testProcessAnnotatedTypeEventFiredForServletListener
> testProcessAnnotatedTypeEventFiredForTagLibraryListener

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list