Re: T5: TapestryTestCase newbie

2008-01-21 Thread Angelo Chen
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:

T5: TapestryTestCase newbie

2008-01-20 Thread Angelo Chen
Hi, I'm trying to use TapestryTestCase, here is a simple case that I don't know how to handle: here is the object under test: public class MyServiceImpl implements MyService { final private Session session; public MyServiceImpl(Session session) { this.session = session; }