Tuesday, July 30, 2019

java - Mockito - verify object not invoked at all



How can you verify a mocked object is not invoked at all? I am trying to test the empty implementation of an interface method using Mockito.


Answer



See Mockito API Article 7. Making sure interaction(s) never happened on mock


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...