Menu

#20 making expected methodcalls easier

open
nobody
None
5
2003-02-18
2003-02-18
No

Hi,

I use mockobject to test pretty complex methods which
use private methods etc. MockMaker nicely creates
MockObjects for all type of object which I need to test
the method.
The one thing I have problems with is that for some
methods some MockObjects are used so frequently by
the method to test and private methods that are used by
the method to test, it's (very) hard to count the number
of calls to a MockObject method.

Is it possible to automatically increment the calls-
counter in an addExpected<org_methodname> method
of a MockObject ?
And\or add an increment<org_methodname>Calls()
method to increment the number of calls ?

Cheers,
Joost den Boer

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.