2 Replies Latest reply on Sep 14, 2010 8:10 AM by steffi.stephanie.stroka.salzburgresearch.at

    TestNG With Eclipse

    frer

      Hi,


      I am trying to get TestNG to run with Eclipse.  It works great with ant and I have tried with the classpath enumerated in the seam-gen readme file.  I also read all the posts on this and I also duplicated my exact ant classpath but there is still something wrong.


      Everything seems to load correctly when seam starts except for the components I declared...I don't see them loaded in the log. 


      My entities that are defined in my hibernate.cfg.xml are loaded but all my Facades which have @Name annotations don't seem to be loaded as components and therefore I get NullPointerException when trying to load them.


      When I deploy them they work fine and with Ant they work fine its really only when I launch it with the testng plugin.


      Any idea what could cause this(Seam not loading my components on startup for my testng test case)?


      Thanks,


      Francois

        • 1. Re: TestNG With Eclipse
          frer

          Finally found the problem.  I forgot to add a seam.properties file in my src folder to allow Seam to detect components.


          Now it works fine.

          • 2. Re: TestNG With Eclipse
            steffi.stephanie.stroka.salzburgresearch.at

            I'm experiencing a similar problem. I also get NullpointerExceptions after setting up the eclipse plugin for TestNG, but, in comparison to you, I can locate my seam.properties file in /test-build. Does anyone know, why I cannot use Component.getInstance(...) though?


            Thanks in advance for any hints