I am in the process of developing Integration Test scripts for our spring application. When I run the test from ant I am getting the following error message: Any ideal as why?
Testcase:
testgetDefaultItemForStoreWithInvalidStoreId(com.xyz.business.admin.role.RoleUtilityUnitTest):
Caused an ERROR Error creating bean with name 'groundingService' defined in URL
[file:/C:/workspace/_EACE1_0_06/EB_Ace_Vob/Business/build/classess/businessContext.xml]: Error
setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value of type [$Proxy47] to required type
[com.xyz.business.grounding.service.OdometerPdfStatement] for property 'odometerPdfStatement'; nested exception
is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy47] to required type
[com.xyz.business.grounding.service.OdometerPdfStatement] for property 'odometerPdfStatement': no matching editors or
conversion strategy found org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'groundingService' defined in
URL [file:/C:/workspace/_EACE1_0_06/EB_Ace_Vob/Business/build/classess/businessContext.xml]: Error
setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value of type [$Proxy47] to required type
[com.xyz.business.grounding.service.OdometerPdfStatement] for property 'odometerPdfStatement';
nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy47] to
required type [com.xyz.business.grounding.service.OdometerPdfStatement] for property 'odometerPdfStatement':
no matching editors or conversion strategy found Caused by:
org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
OdometerPDFStatement is a class (not an interface)
I have the following:
<bean id="odometerPdfStatement" class="com.xyz.business.grounding.service.OdometerPdfStatement"/>
<bean id="groundingService" class="com.xyz.business.grounding.service.GroundingServiceImpl">
<property name="groundingInformationManager" ref="groundingInformationManager"/>
<property name="codeManager" ref="codeManager"/>
<property name="userManager" ref="userManager"/>
<property name="configurator" ref="groundingConfigurator"/>
<property name="velocityPropertyFilePath" value="velocity.properties"/>
<property name="velocityTemplate" value="OdometerStatement.vm"/>
<property name="odometerStatementXSLResourceFile" value="classpath:OdometerStatement2xsl-fo.xsl"/>
<property name="imagePropertyFile" value="classpath:images.properties"/>
<property name="odometerPdfStatement" ref="odometerPdfStatement"/>
<property name="inspectionInformationManager" ref="inspectionInformationManager"/>
<property name="saleEventManager" ref="saleEventManager"/>
<property name="vehicleHistoryManager" ref="vehicleHistoryManager"/>
</bean>