I am new to JMock, however I have used Mockito before.
I want to assert that a mock has not been used during one of my tests. In Mockito I would use verifyZeroInteractions.
Is there an equivalent in JMock, or do I have to check each of the declared methods?
I am using JMock 2.5.1.
There is an equivalent:
If you want to check that a specific method has not been called on your mock:
(And well done for using
JMock
, that's my favourite mocking framework)