tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angelo Chen <angelochen...@yahoo.com.hk>
Subject Re: T5: TapestryTestCase newbie
Date Tue, 22 Jan 2008 03:01:36 GMT

hi,

found the solution, should have been:

expect(session.save(anyObject())).andReturn(null);

another question is, TapestryTestCase has replay(), verify(), but don't have
reset(), how to reset mock objects under TapestryTestCase? 

Thanks,

A.C.




Angelo Chen wrote:
> 
> 
>         expect(session.save(new Usr())).andReturn(null); // is this
> correct way to specify expectation?
> 
>   
> 

-- 
View this message in context: http://www.nabble.com/T5%3A-TapestryTestCase-newbie-tp14990341p15011702.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Mime
View raw message