From: Barry K. <bk...@in...> - 2003-05-15 16:27:25
|
Tim Mackinnon wrote: > Barry - > > Is this a question about the current head version vs. the branch version? Head from 30 April. > The new branch doesn't support this but its easy to add. ExpectedCall should > be copied (or subclassed not sure which) to CallAtLeastOnce and the method > matches reimplmented (e.g. return delegate.matches( methodName, args ); > (When we get into the head version, ExpectedCall should be renamed to > CallOnlyOnce). Subclass DefaultCallFactory and override createExpectedCall > to return your CallAtLeastOnce. Create a Mock with the new factory (or > subclass and have RelaxedMock the specifies the factory). Hmm. I'll have to look at the branch. What is its state? Usable? Stable? -bk |