Mock the session and pass through to the constructor:

Session session = newMock(Session.class);
Service service = new Service(session);

On Jan 17, 2008 8:14 AM, Angelo Chen <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> Is there any tutorial on using TapestryTestCase ? say, I'd like to test a
> service which has Hibernate's Session injected thru constructor, any idea?
>
> Thanks,
> A.C.
> --
> View this message in context:
> http://www.nabble.com/T5%3A-using-TapestryTestCase-tp14913469p14913469.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Best regards,

Igor Drobiazko

Reply via email to