chris clarke
software development that works…or something
Mocking Concrete Classes in JMock 2
November 15, 2007 on 10:44 am | In Tools n Stuff, Testing, Java |In JMock 1 you extended the cglib version of MockObjectTestCase but in JMock 2 its different. You need to change the Imposteriser used by the Mockery:
Mockery context = new Mockery();
context.setImposteriser(ClassImposteriser.INSTANCE);
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Mocking Concrete Classes in JMock 2
November 15, 2007 on 10:44 am | In Tools n Stuff, Testing, Java |In JMock 1 you extended the cglib version of MockObjectTestCase but in JMock 2 its different. You need to change the Imposteriser used by the Mockery:
Mockery context = new Mockery();
context.setImposteriser(ClassImposteriser.INSTANCE);
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by Cheese.
RSS Entries Feed.
RSS Comments Feed
^Top^