Re: Testcase Failure

2013-06-30 Thread Dharmesh Kakadia
Realized the problem. I hadn't change the package structure in
surefire-plugin exclude configuration in pom.xml. That solved the problem.

Thanks,
Dharmesh


On Sat, Jun 29, 2013 at 7:36 PM, Dharmesh Kakadia dhkaka...@gmail.comwrote:

 Hi,

 I am trying to switch com.cloud.network package to org.apache.network.
 While doing so, I am encountering following failure in test case. I tried
 looking around for few hours, but no success. I don't understand
 spring-junit testing much. I looked at
 https://cwiki.apache.org/CLOUDSTACK/unit-testing-101.html but still not
 clear how dependencies are resolved in testing.

 Please tell me where to look for.

 Tests in error:
   testSchedule(org.apache.network.security.SecurityGroupManagerImpl2Test):
 Error creating bean with name 'dataCenterDaoImpl': Injection of autowired
 dependencies failed; nested exception is
 org.springframework.beans.factory.BeanCreationException: Could not autowire
 field: protected org.apache.network.dao.AccountGuestVlanMapDao
 com.cloud.dc.dao.DataCenterDaoImpl._accountGuestVlanMapDao; nested
 exception is
 org.springframework.beans.factory.NoSuchBeanDefinitionException: No
 matching bean of type [org.apache.network.dao.AccountGuestVlanMapDao] found
 for dependency: expected at least 1 bean which qualifies as autowire
 candidate for this dependency. Dependency annotations:
 {@javax.inject.Inject()}

 Thanks,
 Dharmesh



Testcase Failure

2013-06-29 Thread Dharmesh Kakadia
Hi,

I am trying to switch com.cloud.network package to org.apache.network.
While doing so, I am encountering following failure in test case. I tried
looking around for few hours, but no success. I don't understand
spring-junit testing much. I looked at
https://cwiki.apache.org/CLOUDSTACK/unit-testing-101.html but still not
clear how dependencies are resolved in testing.

Please tell me where to look for.

Tests in error:
  testSchedule(org.apache.network.security.SecurityGroupManagerImpl2Test):
Error creating bean with name 'dataCenterDaoImpl': Injection of autowired
dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not autowire
field: protected org.apache.network.dao.AccountGuestVlanMapDao
com.cloud.dc.dao.DataCenterDaoImpl._accountGuestVlanMapDao; nested
exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No
matching bean of type [org.apache.network.dao.AccountGuestVlanMapDao] found
for dependency: expected at least 1 bean which qualifies as autowire
candidate for this dependency. Dependency annotations:
{@javax.inject.Inject()}

Thanks,
Dharmesh