From: Scott L. <sl...@sl...> - 2002-04-17 12:25:17
|
On Wed, Apr 17, 2002 at 11:46:28AM +0100, Jeff Martin wrote: > Thanks for this, but I'm not sure it's really the approach we want to be > taking. I'd prefer to keep things a bit cleaner even if that means > having lots of methods with just notImplemented(); in them. I have to disagree - I don't think that's the clean approach. I don't like the idea of humans creating anything repetitive, anything that a computer could create. There's more possibility for error that way. Or even copying/pasting repetitive, automatically generated code. That code just serves to obscure where the real work is being done. > You might be interested in > http://www.xpdeveloper.com/cgi-bin/wiki.cgi?MockMaker which takes your > approach a bit further. > > There is also some work being done on use java.lang.reflect.Proxy to > provide a default mock implementation. But I'm not aware of the details > of this yet. Those are both interesting. I'll look more at them. Thanks. -- Scott Lamb |