Re: Tap 5.0.9: How to unit test a DAO service with tapetsry-hibernate module

2008-02-03 Thread Sven Homburg
i think, because you have not a META-INF/Manifest.mf in your test classpath that contains the Tapestry-Module-Classes entry (http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html#Autoloading%20modules) 2008/2/3, Shing Hing Man <[EMAIL PROTECTED]>: > Thanks for the suggestion! > > After re

Re: Tap 5.0.9: How to unit test a DAO service with tapetsry-hibernate module

2008-02-03 Thread Shing Hing Man
Thanks for the suggestion! After reading http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate and tried a few combinations. The following works. 1) In AppModule : define the MyFolderDAO service as before. 2) Create AppModuleTest.java which is only available in unit test. p

Re: Tap 5.0.9: How to unit test a DAO service with tapetsry-hibernate module

2008-02-03 Thread Sven Homburg
dont add the TapestryModule to RegistryBuilder, it make only sense, if you testing your DAOs inside a page or component. 2008/2/3, Shing Hing Man <[EMAIL PROTECTED]>: > I have created a DAO service which has > HibernateSessionManager (from the tapestry-hibernate > module) as a property. > In App

Tap 5.0.9: How to unit test a DAO service with tapetsry-hibernate module

2008-02-03 Thread Shing Hing Man
I have created a DAO service which has HibernateSessionManager (from the tapestry-hibernate module) as a property. In AppModule : public static MyFolderDAO buildMyFolderDAO( @InjectService("HibernateSessionManager") HibernateSessionManager sessionManager) {