Hi, I'm trying to test a Service that inject an EntityManager, work well when I deploy the application but on the switchyard test the EntityManager instance is null.
The injection is like this.
@PersistenceContext(unitName = "GATEWAY_PU") private EntityManager em;
What I have to do to make it running on test too?
Thanks,
Your best bet for this now is to use Arquillian for apps that directly interact with Java EE APIs/features (EJB, JPA, etc.).