Creation of hybrid real/mocked objects
05/15/09 1:54 PM
There are cases where you may 90% of the behavior of a class as is but want to mock just a few methods. Currently ColdMock clears all the methods. With just a few simple changes you can have the methods be cleared only when you call mockMethod. To do this, add a clearMethods argument to the createMock method in MockFactory with a default of true. Around line 68 where the StructClear(mock) line is, replace with:
Wow,Fantastic article,it's so helpful to me,and your blog is very good,I've learned a lot from your blog here,Keep on going,my friend,I will keep an eye on it,One more thing,thanks for your post! welcome to <a href=http://bathroomtv.org>bathroom tv</a>.