I want to write a test that passes the layout of object A to the object under testing B, and checks if ANY of methods A is called. To give some context, class B is designed to control A in a certain way, based on a set of parameters, and for certain under conditions, he should not do anything with him. Therefore, my goal is to test this scenario. I know how to check if a particular method has been called:
verify(A, never()).myMethod();
But I canโt find a way to make sure that NONE from Method A was called. Is there any way to do this?
source share