DDSteps date question.
Posted
by Srini
on Stack Overflow
See other posts from Stack Overflow
or by Srini
Published on 2010-03-12T22:27:25Z
Indexed on
2010/03/14
13:45 UTC
Read the original article
Hit count: 253
DDStep Date Question: Currently trying to pass just the date from excel. But getting the below error while doing it. Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for property ...no matching editors or conversion strategy found spring for date conversion
I even tried to add customEditorConfigurer in the ddsteps-context file. Still getting error. But in their pet store example looks like it works fine. Any help is appreciated.
<entry key="java.util.Date">
<bean class="org.springframework.beans.propertyeditors.CustomDateEditor">
<constructor-arg>
<bean class="java.text.SimpleDateFormat">
<constructor-arg value="yyyy-MM-dd" />
</bean>
</constructor-arg>
<constructor-arg value="false" />
</bean>
</entry>
© Stack Overflow or respective owner