3 Replies Latest reply on Apr 27, 2011 9:10 AM by jharting

    seam-booking test failure

    allenc

      I'm getting this failure when i run mvn test -Pjbossas-remote-6:


      Failed tests:
        initializeParameters(org.jboss.seam.examples.booking.ftest.BookingTest)
      


      The booking example runs fine in JBoss. I'm running Seam 3.0.0.Final and JBoss 6.0.0.Final. My Java version is 1.6.0.23 on Windows 7.


      Here's the details from surefire-report:


      Command line test
      org.jboss.seam.examples.booking.ftest.BookingTest:initializeParameters
      context.root system property should be set
      
      org.apache.commons.lang.Validate.notNull(Validate.java:192) 
      at org.jboss.test.selenium.SystemProperties.getContextRoot(SystemProperties.java:52) 
      at org.jboss.test.selenium.AbstractTestCase.initializeParameters(AbstractTestCase.java:125) 
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
      at java.lang.reflect.Method.invoke(Method.java:597) 
      at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:643) 
      at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:446) 
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:162) 
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:92) 
      at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:183) 
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115) 
      at org.testng.TestRunner.runWorkers(TestRunner.java:1030) 
      at org.testng.TestRunner.privateRun(TestRunner.java:709) 
      at org.testng.TestRunner.run(TestRunner.java:579) 
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:331) 
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326) 
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288) 
      at org.testng.SuiteRunner.run(SuiteRunner.java:193) 
      at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910) 
      at org.testng.TestNG.runSuitesLocally(TestNG.java:879) 
      at org.testng.TestNG.run(TestNG.java:787) 
      at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:61) 
      at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:144) 
      at org.apache.maven.surefire.Surefire.run(Surefire.java:169) 
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
      at java.lang.reflect.Method.invoke(Method.java:597) 
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350) 
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021) 
      


      Any suggestions?

        • 1. Re: seam-booking test failure
          jharting

          Allen,


          You've actually found a problem in our testsuite. I've opened SEAM-84 for tracking. See the workaround section for a temporary solution.


          Thanks for reporting!

          • 2. Re: seam-booking test failure
            allenc

            Jozef,


            Thank you! That helped, but now I get this error in BookingAgentText.txt:


            Caused by: java.lang.IllegalArgumentException: File must exist: C:\Users\allen\.m2\repository\org\jboss\seam\solder\seam-solder\3.0.0.CR4\seam-solder-3.0.0.CR4.jar
                 at org.jboss.shrinkwrap.api.asset.FileAsset.<init>(FileAsset.java:51)
                 at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsLibrary(ContainerBase.java:1151)
                 at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsLibraries(ContainerBase.java:1276)
                 at org.jboss.seam.examples.booking.booking.BookingAgentTest.createDeployment(BookingAgentTest.java:57)
            


            There is a similar error in HotelSearchTest.txt.


            Allen

            • 3. Re: seam-booking test failure
              jharting

              Seems like fixing the former problem revealed another one. I've opened an issue to track this SEAM-85