Friday, August 9, 2013

[jmock] How to call mocked methods with multiple any arguments

Inside your expectation, include the following:


allowing (calculator).add(with(any(int.class)), with(any(int.class)));

More: jmock cheat sheet

0 comments:

Post a Comment