Christophe Demarey wrote
> ... but sometimes, even in a well-designed class, you may need to test a
> very small part of this class, and in this case, you need a real object
> with some mocked methods.

I assume that there is a method need to be tested, but it calls towards an
other either public or private method of the same object. And you'd like to
mock that second method. Am I understanding correctly? 
Why can't just allow the first method to call the second one? Is it slow,
complicated to setup or requires some external resource to execute? Does it
help to extract the logic from the second method to an other object? Without
a concrete example, I'm just speculating.



--
View this message in context: 
http://forum.world.st/ANN-BabyMock-2-tp4748530p4756105.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to