[weld-issues] [JBoss JIRA] Created: (CDITCK-121) Bug in BeanManagerTest

Gurkan Erdogdu (JIRA) jira-events at lists.jboss.org
Tue Feb 23 18:28:10 EST 2010


Bug in BeanManagerTest
----------------------

                 Key: CDITCK-121
                 URL: https://jira.jboss.org/jira/browse/CDITCK-121
             Project: CDI TCK
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Gurkan Erdogdu


   public void testGetPassivationCapableBeanById()
   {
      Bean<?> bean = getCurrentManager().getBeans(Cow.class).iterator().next();
      assert PassivationCapable.class.isAssignableFrom(bean.getClass());
    ......

Bean SPI class does not extends PassivationCapable interface. Therefore, PassivationCapable.class.isAssignableFrom(bean.getClass()); must not be true. 

OWB beans do not implement PassivationCapable interface as a default. Therefore this is specific to Weld.

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