0 Replies Latest reply on Jan 28, 2009 4:24 PM by kelly goedert

    integrated tests and postgres

    kelly goedert Apprentice

      Hi,


      I would like to know if it is possible to run seam examples integrated tests with a postgresql database.


      I copied my datasource-ds.xml to bootstrap/deploy dir and added postgres jar to the tests classpath. But I get this

         [testng] FAILED: testLogin
         [testng] java.lang.AssertionError: java.lang.NullPointerException
         [testng]     at org.jboss.seam.mock.AbstractSeamTest$Request.onException(AbstractSeamTest.java:455)
         [testng]     at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:504)
         [testng]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
         [testng]     at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
         [testng]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         [testng]     at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
         [testng]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         [testng]     at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
         [testng]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         [testng]     at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
         [testng]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         [testng]     at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
         [testng]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         [testng]     at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
         [testng]     at org.jboss.seam.mock.AbstractSeamTest$Request.run(AbstractSeamTest.java:491)
         [testng]     at org.jboss.seam.example.registration.test.RegisterTest.testLogin(Unknown Source)
         [testng] Caused by: java.lang.NullPointerException
         [testng]     at org.jboss.seam.example.registration.test.RegisterTest$1.invokeApplication(Unknown Source)
         [testng]     at org.jboss.seam.mock.AbstractSeamTest$Request.invokeApplicationPhase(AbstractSeamTest.java:646)
         [testng]     at org.jboss.seam.mock.AbstractSeamTest$Request.emulateJsfLifecycle(AbstractSeamTest.java:595)
         [testng]     at org.jboss.seam.mock.AbstractSeamTest$Request.access$300(AbstractSeamTest.java:177)
         [testng]     at org.jboss.seam.mock.AbstractSeamTest$Request$2.doFilter(AbstractSeamTest.java:497)
         [testng]     ... 36 more
         [testng] ... Removed 22 stack frames


      The datasource and persistence.xml are correct because I can use them to deploy the examples.
      What is different in the integrated tests?


      Thanks


      Kelly