[jboss-dev-forums] [Design the new POJO MicroContainer] - ProfileServiceUnitTestCase tests failing

charles.crouch@jboss.com do-not-reply at jboss.com
Tue Feb 6 10:41:34 EST 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011973#4011973

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011973



More information about the jboss-dev-forums mailing list