|
From: David C. <dc...@ma...> - 2007-06-11 14:27:32
|
On Monday 11 June 2007 07:42, SMITH Neil wrote: I'd like to append a little side-comment to this thread. It is very difficult to (for me anyway) to test a class A that collaborates with B & C where B & C are mocks, if in fact C is at some point an argument to a B method. On the surface, this seems to me because I have to mock out equals and maybe hashCode on C or it fails and if it does fail it wants to call "toString" which isn't mocked out either. Not sure if it's viable, but default implementations for all of these Object methods would be a good thing. -- David Corbin Abolish the IRS - http://www.fairtax.org |