It's propably case sensitive - I'd try: name=MyValueForNameAttribute
Matt On 4/19/07, celeraman+ <[EMAIL PROTECTED]> wrote:
Thanks a million, Matt! You are just right! If I put my .properties file into src/test/resources/my/package/name, so the NullPointerException from populate Method goes away. The bad news is that the NullPointerException goes to dao.save() method. I know that the NullPointerException was executed because the object that will be saved was null, besides it was populated at code line before. I see that the populate method is doing their job as expected. I think this happens because the class attribute's names do not match with the names into .properties files. If a getter method's attribute is getName(), so I defined it as Name=MyValueForNameAttribute into the .properties file. I will do some tests... Any help for more one newbie question is welcome! -- celeraman+ -- View this message in context: http://www.nabble.com/NullPointerException-when-trying-to-populate-in-test-case-tf3604674s2369.html#a10090833 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]
