Re: Unit Test Cannot run correctly!

2007-09-02 Thread Doublel
Thanks Korben Zhang I didn't write DAO Service,I directly inject DAO into t5 page like this: @Inject @SpringBean("IPublicDAO") private IPublicDAO pdao; it can work well in tomcat.but when I want to user Unit Test,I got the exception。 I must write DAO service ?? my code is learned from your tfan

Re: Unit Test Cannot run correctly!

2007-09-02 Thread Korben Zhang
How did you inject DAO service? if you use Spring to manage DAOs, usage like other service. Spring will help you get right object instance. On 8/31/07, 小司 <[EMAIL PROTECTED]> wrote: > > My Application use spring2+tapestry5+hibernate3 ,it can work well in me > IE or FF > > so,I want to use Unit T

Unit Test Cannot run correctly!

2007-08-30 Thread 小司
My Application use spring2+tapestry5+hibernate3 ,it can work well in me IE or FF so,I want to use Unit Test with testNG .I followed http://tapestry.apache.org/tapestry5/tapestry-core/guide/unit-testing-pages.html configrate spring with http://wiki.apache.org/tapestry/Tapestry5SpringIntegration