We want to assert that a method was only called once, so we tried to specify something like that:
This doesn't work and the framework suggests times should be at least 2. If we do not specify times(), then the assert passes if the method was called AT LEAST ONCE - not just one time. So it seems like there is no way to require that a method is only called once.
We looked a bit at the code, and we'd suggest the attached diff. We hope this helps, Best regards,
Stefan Wehner & Eduardo Ferro
PD: Por cierto - muy util la libreria ;-)