Yes, you should be able to use dot-notation to accomplish this. For Dates, you might have to register the DateConverter (from service.util) so dates use your preferred formatting.
Matt On 3/8/07, Philip Barlow <[EMAIL PROTECTED]> wrote:
Yeah i checked that stuff, case is fine and setters are public. Never mind i'm sure i'll figure it out. On this subject, is it possible to populate dates using this method and what about objects that have other objects as properties? Can they be populated using the .properties file too? Example Object1 has Object2 as a property. Can Object1DaoTest.properties contain values to populate Object2? Matt Raible wrote: > No, it's not a requirement, I imagine your properties file is using > the wrong case for the properties - or something like that. Are you > setters public? > > Matt > > On 3/8/07, Philip Barlow <[EMAIL PROTECTED]> wrote: >> I have not implemented toString() on the object i am testing, i take it >> this is a requirement for BeanUtils.copyProperties()? If so should it be >> implemented using ToStringBuilder as in Appfuse 2.x? >> >> Matt Raible wrote: >> > If you execute toString() on your object, is it really populated? If >> > you have a setup method, is it calling super.setup()? >> > >> > Matt >> > >> > On 3/7/07, Philip Barlow <[EMAIL PROTECTED]> wrote: >> >> Hi guys, >> >> >> >> Are there any known issues with populating your model objects >> using the >> >> populate method in BaseDaoTestCase class. I have set up a .properties >> >> file with the same name as my test case and entered values for each >> >> property of the model object, yet when BeanUtils.copyProperties is >> >> called the model object properties are all null. I am using Spring >> MVC >> >> basic if that matters. Haven't had a chance to debug into >> BeanUtils but >> >> i have verified that the Map is being populated with values from the >> >> .properties file. >> >> >> >> Any ideas, pointers? >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
