Menu

#19 Reset Method

open
nobody
None
5
2003-02-13
2003-02-13
Anonymous
No

Hi,

I thought it would be nice to have a reset() method on a
Mockobject that would set the counters back to 0 and
the iterators of the ReturnValues back to the beginning.
That would allow to configure a mock-object and use in
more than once.

For example a JUnit test could call reset() on setUp() for
each test that uses the same object.

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.