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:
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;
}