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

Marius Bogoevici (JIRA) jira-events at lists.jboss.org
Tue Jun 29 13:14:46 EDT 2010

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


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