Re: [T5] using the ioc and tapestry-hibernate in tests

2007-06-08 Thread Dan Adams
Also, If I do this: public void testTest() throws Exception { RegistryBuilder builder = new RegistryBuilder(); builder.add(TapestryModule.class); builder.add(HibernateModule.class); builder.add(AppModule.class); Registry registry = builder.build(); ... get the service and do s

[T5] using the ioc and tapestry-hibernate in tests

2007-06-08 Thread Dan Adams
I have some dao services that i would like to test and for that i need a running hibernate session. I can't seem to get tapestry-hibernate to load in my tests however. What I have to load the ioc is basically: RegistryBuilder builder = new RegistryBuilder(); IOCUtilities.addDefaultModules(builder)