3 Replies Latest reply on Oct 6, 2005 4:05 AM by gavin.king

    Testing booking application

    mpancotti

      The booking application is correctly running on he Jboss container, but I have a problem running the test suite.
      Using the Eclipse testNG plugin and running the testng.xml suit I have the following output

      [TestClass] Creating TestClass for [ClassImpl org.jboss.seam.example.booking.test.LoginTest]
      [TestRunner] Running test Login on 1 classes, included groups:[] excluded groups:[]
      [TestClass]
      ======
      TESTCLASS: org.jboss.seam.example.booking.test.LoginTest
      [TestClass]
      ======
      
      [TestRunner] Marking class [TestClass class org.jboss.seam.example.booking.test.LoginTest] as beforeConfigurationClass=true
      [TestRunner] PARALLEL LIST:
      [TestRunner] SEQUENTIAL LIST:
      [TestRunner] Found 0 applicable methods
      [TestRunner] Marking class [TestClass class org.jboss.seam.example.booking.test.LoginTest] as afterConfigurationClass=true
      
      *********** INVOKED METHODS
      
      
      ***********
      
      [TestClass] Creating TestClass for [ClassImpl org.jboss.seam.example.booking.test.BookingTest]
      [TestRunner] Running test Booking on 1 classes, included groups:[] excluded groups:[]
      [TestClass]
      ======
      TESTCLASS: org.jboss.seam.example.booking.test.BookingTest
      [TestClass]
      ======
      
      [TestRunner] Marking class [TestClass class org.jboss.seam.example.booking.test.BookingTest] as beforeConfigurationClass=true
      [TestRunner] PARALLEL LIST:
      [TestRunner] SEQUENTIAL LIST:
      [TestRunner] Found 0 applicable methods
      [TestRunner] Marking class [TestClass class org.jboss.seam.example.booking.test.BookingTest] as afterConfigurationClass=true
      
      *********** INVOKED METHODS
      
      
      ***********
      
      [TestClass] Creating TestClass for [ClassImpl org.jboss.seam.example.booking.test.ChangePasswordTest]
      [TestRunner] Running test ChangePassword on 1 classes, included groups:[] excluded groups:[]
      [TestClass]
      ======
      TESTCLASS: org.jboss.seam.example.booking.test.ChangePasswordTest
      [TestClass]
      ======
      
      [TestRunner] Marking class [TestClass class org.jboss.seam.example.booking.test.ChangePasswordTest] as beforeConfigurationClass=true
      [TestRunner] PARALLEL LIST:
      [TestRunner] SEQUENTIAL LIST:
      [TestRunner] Found 0 applicable methods
      [TestRunner] Marking class [TestClass class org.jboss.seam.example.booking.test.ChangePasswordTest] as afterConfigurationClass=true
      
      *********** INVOKED METHODS
      
      
      ***********
      
      
      ===============================================
      Hotel Booking
      Total tests run: 0, Failures: 0, Skips: 0
      ===============================================

      Why does it not invoke any method?
      Thanks for the help
      Marco Pancotti

        • 1. Re: Testing booking application
          drapierwim

          Don't know if it will help but maybe you schould read this thread first.
          It solved my problems for running the tests in eclipse.

          http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70249

          You should also take a look at the readme.txt in the embedded-ejb dir

          • 2. Re: Testing booking application
            mpancotti

            Thanks, it did not help so much but I tried to restart from the beginning, putting every folder I found in my disk (and even some folder of an another PC) in the classpath. Under Windows it suddenly started to work, under Linux no.

            It's clearly a classpath problem, but I really can not understand how a test could run (but not run) in this way. I'm not an EJB user, so probably the problem is that I do not understand how to organize correctly the classpath in this environment.

            I suppose that me or some other Eclipse user should reorganize the examples as ready-to-run eclipse projects , now or later.



            • 3. Re: Testing booking application
              gavin.king

              I have no idea, I have never seen this, but it looks more like a TestNG related issue?