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,