Are you using AppFuse 2.00? If so the properties file should go in a
matching directory under src/test/resources.
Mike.
On 10/27/07, mschipperheyn <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I try to use the populate method to load object properties, but it doesn't
> work. I don't get an error but I see in the query browser that my object
> values are null. Manually loading works fine.
>
> I placed UserDaoTest.properties in the same dir as UserDaoTest.java
> +++UserDaoTest.properties
> nickName=marc
> password=1234
> [EMAIL PROTECTED]
>
> +++UserDaoTest.java
> public void testFindUserByNickName() throws Exception{
> User user = new User();
> user = (User) populate(user);
> // user.setEmail("[EMAIL PROTECTED]");
> // user.setNickName("marc");
> // user.setPassword("12345");
> user = userDao.save(user);
>
> flush();
>
>
> List<User> users = userDao.findByNickName("marc");
>
> assertTrue(users.size() > 0);
>
> log.debug("removing user");
>
> userDao.remove(user.getUserId());
> flush();
>
> }
>
> Any ideas why this might occur?
>
> Kind regards,
>
> Marc
> --
> View this message in context:
> http://www.nabble.com/populate-doesn%27t-seem-to-work-tf4704435s2369.html#a13447142
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>