One thing is to run each test in a single transaction. This way the session will remain open. I tend to use Spring for this (see http://static.springframework.org/spring/docs/2.5.x/reference/testing.html#testcontext-tx. ). If you are not using Spring you could start a transaction yourself.
Hop this helps. Lars On Sun, Mar 2, 2008 at 10:34 PM, carloc <[EMAIL PROTECTED]> wrote: > > Hi , > > I seem to be getting this Exception when I run integration tests using > WicketTester... > > I use lazy objects through the opensessioninviewfilter. > How can I get WicketTester to use this filter? > Is there anyway that this could be resolved? > > org.hibernate.LazyInitializationException: could not initialize proxy - no > Session > -- > View this message in context: > http://www.nabble.com/Wicket-Tester-And-OpenSessionInView-tp15793421p15793421.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
