Java Mailing List Archive

http://www.gg3721.com/

Home » user.jmock »

[jmock-user] JMock implementation

Vivek

2008-07-14


Author LoginPost 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
©2008 gg3721.com - Jax Systems, LLC, U.S.A.