From: Caleb Tennis Date: 2005-05-07T03:43:38+09:00 Subject: Re: Redefining inheritance? > Do your mock classes define their own tests? If not, I'm not sure why > you'd need MockB to extend MockA, and certainly not B to extend MockA. > Make MockB extend B, which in turn extends A. If you really /must/ have > MockB extend MockA, you could wrap an instance of the latter inside the > former. A defines some methods which need to be overwritten during tests, which is why I have a MockA. B needs the same set of methods overwritten during its unit tests, so I end up needing a MockB which needs to grab the same overrides that were in A. I ended up just redefining the methods directly in A (thus, now no MockA is ever created) within the unit test file and did some aliasing to make it work. Thanks for the reply, though.