mockbox and inheritence

Hi all,
A colleague and I were scratching our heads on how to use mockBox to
mock a specific scenario. Rather than re-write the problem I will
link to his blog post on the subject.

So really 2 questions. One very specific one and one pretty general.

1) Is there a right way to mock away the parent implementation when
both parent and child implement foo and the child calls super.foo()?
Is it a good idea to simply wrap the call to super.foo() in a separate
method in the child so it can be mocked?

2) Should we be mocking this call at all? Are there guidelines
around good test isolation when it comes to inheritance?

Thanks in advance,
Lance

Lance, this is a great issue, so I will be posting an entry and adding to the docs an approach that works for me.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

http://bit.ly/eWdCuH

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Thanks Luis. That was what I was looking for.