1 Reply Latest reply on Feb 6, 2014 8:40 AM by Keith Babo

    SwitchYard-Test EntityManager null injection

    fenoloco Newbie

      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,