0 Replies Latest reply on Apr 26, 2007 6:07 AM by ehstowa

    Problem running TestNG tests from maven

    ehstowa

      Hi,
      we are running
      Seam 1.2.1
      MyFaces 1.1.5
      on Tomcat 5.5.20

      When running TestNG tests from Eclipse or Idea, all tests work fine, however when running them from Maven, all fail with the error:
      java.lang.NullPointerException
      at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:418)
      at com.fastsearch.w2p.moox.seamtests.LoginTest.registerTest(LoginTest.java:18)

      where we are attemting the first action in the test (Bold line):

      public class LoginTest extends MooxSeamTest {
       @Test(groups = {"seam"})
       public void registerTest() throws Exception {
       new FacesRequest("index.html") {
      


      Does anybody have any ideas?

      Thanks
      / Tomas