If you change DepartamentDaoTest.properties to use "name" instead of
"nome", does it populate the name property?
Matt
On 4/23/07, celeraman+ <[EMAIL PROTECTED]> wrote:
FIY, I got some progress...
1. The bean definition in src/main/webapp/WEB-INF/aplicationContext.xml file
for DepartmentDao
was wrong as following:
<bean id="DepartmentDao"
class="org.appfuse.tutorial.dao.hibernate.DepartamentDaoHibernate">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
Note *DepartmentDao* where must be *departmentDao*.
2. my test case properties files was including the id property. The
Hibernate Tutorial don't include a id property, so I think this could be a
future problem and I removed it.
3. I replace the populate method call by calling the setters for myself and
bingo... the test case was BUILD SUCCESSFUL.
But the question continues:
Why the populate method call do not load my Department bean from the
.properties file?
Any help are welcome!
--
celeraman+
--
View this message in context:
http://www.nabble.com/NullPointerException-when-trying-to-populate-in-test-case-tf3604674s2369.html#a10153635
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]