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

    Testing junit in eclipse

    Ben Gill Newbie


      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?