[weld-issues] [JBoss JIRA] Work stopped: (CDITCK-169) PersistenceContextInjectionTest is using an invalid isOpen() call

Marius Bogoevici (JIRA) jira-events at lists.jboss.org
Mon Aug 9 16:08:49 EDT 2010


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

Work on CDITCK-169 stopped by Marius Bogoevici.

> PersistenceContextInjectionTest is using an invalid isOpen() call
> -----------------------------------------------------------------
>
>                 Key: CDITCK-169
>                 URL: https://jira.jboss.org/browse/CDITCK-169
>             Project: CDI TCK
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.0.2.CR1
>            Reporter: Marius Bogoevici
>            Assignee: Marius Bogoevici
>             Fix For: 1.0.2.Final, 1.1.0.CR1
>
>
> org.jboss.jsr299.tck.tests.implementation.simple.resource.persistenceContext.PersistenceContextInjectionTest:
> The Java EE resource producer field pattern is tested by a couple of methods. During the test, the EntityManager.isOpen() method is used for testing, but calling isOpen() from within the test method is invalid, because the EntityManager is transaction-scoped and not application-managed, and the call happens outside the scope of a JTA transaction.
> Proposed solution: inject the produced EM in an EJB and perform the check from within a transaction.

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

        


More information about the weld-issues mailing list