-
Bug
-
Resolution: Done
-
Major
-
1.0.2.CR1
-
None
-
None
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.