0 Replies Latest reply on Aug 31, 2009 1:47 AM by philip puthenvila

    Running tests using testng

    philip puthenvila Newbie

      Hi
      When I try to run came along with the Sample hotel booking app, I am getting this exception.
      FAILED: testLogin
      java.lang.NullPointerException
      at java.lang.String.startsWith(String.java:1422)
      at java.lang.String.startsWith(String.java:1451)
      at org.ajax4jsf.webapp.WebXml.getFacesResourceKey(WebXml.java:189)
      at org.ajax4jsf.webapp.WebXml.getFacesResourceKey(WebXml.java:222)
      at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:139)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      at org.jboss.seam.mock.AbstractSeamTest$Request.run(AbstractSeamTest.java:491)
      at org.jboss.seam.example.booking.test.LoginTest.testLogin(LoginTest.java:52)
      ... Removed 22 stack frames
      FAILED: testLoginComponent
      java.lang.NullPointerException
      at org.jboss.seam.example.booking.test.LoginTest$1.testComponents(LoginTest.java:24)
      at org.jboss.seam.mock.AbstractSeamTest$ComponentTest.run(AbstractSeamTest.java:162)
      at org.jboss.seam.example.booking.test.LoginTest.testLoginComponent(LoginTest.java:36)
      ... Removed 22 stack frames

      ===============================================
      org.jboss.seam.example.booking.test.LoginTest
      Tests run: 2, Failures: 2, Skips: 0
      ===============================================


      ===============================================
      seamBookingPortlet
      Total tests run: 2, Failures: 2, Skips: 0
      ===============================================
      Please help me to sort this out, please
      Philip