[weld-issues] [JBoss JIRA] Closed: (CDITCK-202) EnterpriseEventInheritanceTest -- incorrect assumption

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Dec 30 09:52:18 EST 2010


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

Pete Muir closed CDITCK-202.
----------------------------

         Assignee: Pete Muir
    Fix Version/s: 1.1.0.CR1
       Resolution: Done


Fixed using the strategy of giving each visited class a unique name.

> EnterpriseEventInheritanceTest -- incorrect assumption
> ------------------------------------------------------
>
>                 Key: CDITCK-202
>                 URL: https://issues.jboss.org/browse/CDITCK-202
>             Project: CDI TCK
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Tests
>    Affects Versions: 1.0.2.CR1
>            Reporter: Sivakumar Thyagarajan
>            Assignee: Pete Muir
>             Fix For: 1.0.4.Final, 1.1.0.CR1
>
>
> This is an issue similar to CDITCK-74. The following tests in 1.0.2.SP1 fails with GlassFish
> org.jboss.jsr299.tck.tests.event.observer.enterprise.EnterpriseEventInheritenceTest.testNonStaticObserverMethodInherited
> org.jboss.jsr299.tck.tests.event.observer.enterprise.EnterpriseEventInheritenceTest.testNonStaticObserverMethodIndirectlyInherited
> Farmer.observeEggLaying [1] still tries to record using "this" and EventPayload.recordVisit() [2] still uses the passed object's class.
> This may not work in environments where the EJB Bean is subclassed as is the case with Glassfish.  For instance in GlassFish, we see the following
> [class org.jboss.jsr299.tck.tests.event.observer.enterprise._LazyFarmer_Serializable, class org.jboss.jsr299.tck.tests.event.observer.enterprise._Farmer_Serializable]
> Daemon Thread [http-thread-pool-8080(1)] (Suspended (breakpoint at line 45 in EnterpriseEventInheritenceTest))
> EnterpriseEventInheritenceTest.testNonStaticObserverMethodInherited() line: 45
> Need to fix the test so that is agnostic of EJB implementation strategy -- either see if the recorded classes are assignable from the original EJBs or have the 2 EJBs have a method that returns their respective names.
> [1] http://anonsvn.jboss.org/repos/weld/cdi-tck/tags/1.0.2.SP1/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/enterprise/Farmer.java
> and
> [2] http://anonsvn.jboss.org/repos/weld/cdi-tck/tags/1.0.2.SP1/impl/src/main/java/org/jboss/jsr299/tck/tests/event/observer/enterprise/EventPayload.java

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list