BaseDaoTestCase#populate( Object ) uses spring-2.0.6's BeanUtils.copyProperties( HashMap, Object ). However, I think the first parameter of copyProperties(...) should have the same properties of the 2nd parameter for it to work properly.
Description
BaseDaoTestCase#populate( Object ) uses spring-2.0.6's BeanUtils.copyProperties( HashMap, Object ). However, I think the first parameter of copyProperties(...) should have the same properties of the 2nd parameter for it to work properly.
The problem is that the call to BeanUtils.copyProperties is reversed. The destination is supposed to be the first parameter, the second is supposed to be the source.
Anil Gangolli added a comment - 21/Sep/08 12:36 AM
I am seeing this in 2.0.2
The problem is that the call to BeanUtils.copyProperties is reversed. The destination is supposed to be the first parameter, the second is supposed to be the source.
The call at BaseDaoTestCase:76 should be
BeanUtils.copyProperties(obj, map);
Anil Gangolli added a comment - 21/Sep/08 10:04 AM This is a patch based on the version of org.appfuse.dao.BaseDaoTestCase in appfuse-hibernate-2.0.2.jar
I am seeing this in 2.0.2
The problem is that the call to BeanUtils.copyProperties is reversed. The destination is supposed to be the first parameter, the second is supposed to be the source.
The call at BaseDaoTestCase:76 should be
BeanUtils.copyProperties(obj, map);