From: Barry K. <bk...@in...> - 2003-05-15 16:25:02
|
Tim Mackinnon wrote: > Actually if its just for getters and you just want to specify a return value > (and not bother setting an expectation, just use matchAndReturn). Or use > both to get an initial expectation and then a default (and then no need for > a special factory) > > expectAndReturn("getX", 5); > matchAndReturn("getX", 5); Ah! This is probably what I want. Thanks. Part of my problem is that I have not been using Mock.class until just recently. I have been using the subclasses of Call and integrating them with our existing simple mocks. Let me ask another question: The other reason I hacked CallSet was to support mutliple calls but in any order. Is that that the default behavior for Mock.class? |