From: Vincent M. <vm...@pi...> - 2003-05-14 07:50:14
|
> -----Original Message----- > From: Tim Mackinnon [mailto:tim...@po...] > Sent: 14 May 2003 02:18 > To: Vincent Massol; 'Mockobjects-Java-Dev' > Subject: RE: [MO-java-dev] First batch of questions on new Dynamic Mock > API > > [snip] > > > > - what is now replacing the setupDefaultResult() method? > > > > Ex: mockRequest.setupDefaultResult(String.class, null); > > > > Any answer for that? > > Yes: use matchAndReturn("methodName", C.isA(String.class), null) Does it mean the DynaMock API is not offering anymore default behaviors and that each and single method call has to be matched or expected? Not that I'm finding that bad, just asking... Thanks -Vincent |