0 Replies Latest reply on Mar 7, 2008 2:07 PM by erik.d.hellman

    TestNG test with MicroContainer?

    erik.d.hellman

      We have a Seam 1.2.1 application (upgrade is not an option at the moment) and I'm trying to create some TestNG tests. The application was initially generated with seam-gen, so I have a test task in my build.xml.


      My test will initially do the following:



      @Configuration(beforeTestClass=true)
      public void init() {        
          entityManagerFactory = Persistence.createEntityManagerFactory("bvk");
      }



      When running the test it starts to load all the entities, but then I get the following error:



      14:02:17,292 ERROR NamingHelper Could not obtain initial context
      javax.naming.NamingException: Local server is not initialized



      Is there something wrong with the build.xml that comes with Seam 1.2.1 seam-gen generated projects or have I missed something? Reading the documentation and forums doesn't give me any more advice.


      Thanks,
      Erik