1 Reply Latest reply on Nov 22, 2007 7:30 AM by paradigmza

    Testing junit in eclipse

      Hi

      I have to use junit framework as it is part of corporate policy and I would like to get LoginTest (extends SeamTest) working.

      I am using junit 4.4 and have added the boostrap, src and resource directories to my junit classpath but when I execute the test I get a null pointer in ServletApplicationMap because the servletContext has not been initialised...

      return servletContext.getAttribute( (String) key );

      Can anyone advise how I can bootstrap the seam environment?

      Thanks

        • 1. Re: Testing junit in eclipse
          paradigmza

          You can't, the seamtest uses testng specific annotations to set everything up.

          You should be able to replace the testng annotations with junit ones and recompile the seam test (from what I have seen)