Mockito api provides a method:
Mockito.verifyNoMoreInteractions(someMock);
but is it possible to declare in Mockito that I donβt want more interactions with this layout with exceptions for interactions with its getter methods?
A simple scenario is one in which I test that SUT only changes certain properties of a given layout and leaves other properties unused.
In the example, I want to verify that UserActivationService modifies the Active property in an instance of the User class, but does nothing for properties such as Role, Password, AccountBalance, etc.
unit-testing mockito mocking
mgamer
source share