Hi Kalle,
> What is the mock used for (particularly in this case)? > You want to use the SessionSource to create a new Session if the > execution of your operation lasts longer than the lifetime of the > request is. If you are injecting a session, T5 manages the lifetime of > it and closes it at the end of the request handling. > Thank you very much for this piece of information, i have missed it in those tutorials I read. > That's one use case. The right approach for a given situation depends > on what specifically you are testing and what the circumstances are > for that particular use case. Similarly, the PageTester is hugely > beneficial for testing the logic within your pages, but there's no > benefit using it for testing your persistence queries. > That is the reason why I thought, I missuse the PageTester. Thanks for your help Regards Stefan -- View this message in context: http://tapestry.1045711.n5.nabble.com/Basic-DAO-Service-Test-Setup-tp5472574p5482482.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org