Author Login
Post Reply
Hi,
I just wanted to know, why JMock cannot mock a class that doesn't have
an interface ? I mean, I know if you specify
mockery.setImposteriser(ClassImposteriser.INSTANCE);, it would actually
be able to. But why is it designed in such a way that you have to
specify this to mock a class ?
Just out of curiosity, I thought every mock class would be implemented
as an extension to the original class. Could anyone throw more light on
this ?
-Vivek