2 Replies Latest reply on Feb 8, 2007 12:10 PM by ccrouch

    ProfileServiceUnitTestCase tests failing

    ccrouch

      When running ProfileServiceUnitTestCase I'm getting two failures:

      Testcase: testProfileKeys took 3.505 sec
      Testcase: testDeploymentNames took 0.231 sec
      Testcase: testNoSuchProfileException took 0.11 sec
      Testcase: testDataSourceDeploymentType took 0.1 sec
      Testcase: testListDataSourceComponents took 3.164 sec
       Caused an ERROR
      null
      java.lang.NullPointerException
       at org.jboss.test.profileservice.test.ProfileServiceUnitTestCase.getTestDataSource(ProfileServiceUnitTestCase.java:264)
       at org.jboss.test.profileservice.test.ProfileServiceUnitTestCase.testListDataSourceComponents(ProfileServiceUnitTestCase.java:120)
      
      Testcase: testAddDataSource took 0.431 sec
      Testcase: testRemoveComponent took 0.06 sec
      Testcase: testUpdateDataSource took 0.05 sec
       Caused an ERROR
      null
      java.lang.NullPointerException
       at org.jboss.test.profileservice.test.ProfileServiceUnitTestCase.getTestDataSource(ProfileServiceUnitTestCase.java:264)
       at org.jboss.test.profileservice.test.ProfileServiceUnitTestCase.testUpdateDataSource(ProfileServiceUnitTestCase.java:206)


      because mgtView.getComponentsForType below is returning null:

      ComponentType dsType = new ComponentType("DataSource", "LocalTx");
      Set<ManagedComponent> dsComps = mgtView.getComponentsForType(dsType);




      Thanks

        • 1. Re: ProfileServiceUnitTestCase tests failing
          starksm64

          The profile service aspects were not being applied again. I have updated the bootstrap-repo.xml with aop:lifecycle-configure and the tests are now passing for me.

          • 2. Re: ProfileServiceUnitTestCase tests failing
            ccrouch

            I updated to r60366 and now just get one failure:

            Testcase: testProfileKeys took 2.183 sec
            Testcase: testDeploymentNames took 0.15 sec
            Testcase: testNoSuchProfileException took 0.05 sec
            Testcase: testDataSourceDeploymentType took 0.05 sec
            FAILED
            names.size > 0
            junit.framework.AssertionFailedError: names.size > 0
            at org.jboss.test.profileservice.test.ProfileServiceUnitTestCase.testDataSourceDeploymentType(ProfileServiceUnitTestCase.java:108)

            Testcase: testListDataSourceComponents took 0.18 sec
            Testcase: testAddDataSource took 0.621 sec
            Testcase: testRemoveComponent took 0.08 sec
            Testcase: testUpdateDataSource took 0.792 sec
            Testcase: testRemoveDataSource took 0.55 sec