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

Shelly McGowan (JIRA) jira-events at lists.jboss.org
Mon Jul 19 21:33:52 EDT 2010


    [ https://jira.jboss.org/browse/CDITCK-169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12540003#action_12540003 ] 

Shelly McGowan commented on CDITCK-169:
---------------------------------------

Tests Affected:
testInjectionOfPersistenceContext
testPassivationOfPersistenceContext

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