PersistenceContext not set when running on Arquilian test for JBoss EAP 7
Issue
I have been writing Arquillian
/Junit
tests for an application targeted for the JBoss EAP 7. The application is able to inject the value of the PersistenceContext
in the unit test class but does not inject
the value in the DAO, this results in a null pointer exception. Could you tell me how to get the @PersistenceContext
annotation working in the the DAO class?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.