Author Login
Post Reply
> simonz wrote:
> [..]
> Just wondering if there is a nice solution that I am missing here!
If Bar is not final, you could define
class MockBar extends Bar {
public void bar() {
// ...
}
}
in your test script and inject it into the Foo object that's to be tested.
--
Alex
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email