Adapt test to Mockito 5.6.0 update
verifyZeroInteractions has been deprecated since 3.x.x
and replaced with verifyNoInteractions.
Change-Id: Ifa54c55b72d6752077fc82058a17f08edd23cbfa
diff --git a/src/test/java/com/ericsson/gerrit/plugins/eventslog/EventHandlerTest.java b/src/test/java/com/ericsson/gerrit/plugins/eventslog/EventHandlerTest.java
index 0007ab8..8a861c3 100644
--- a/src/test/java/com/ericsson/gerrit/plugins/eventslog/EventHandlerTest.java
+++ b/src/test/java/com/ericsson/gerrit/plugins/eventslog/EventHandlerTest.java
@@ -17,7 +17,7 @@
import static com.google.common.truth.Truth.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyZeroInteractions;
+import static org.mockito.Mockito.verifyNoInteractions;
import com.google.gerrit.server.events.ChangeEvent;
import com.google.gerrit.server.events.Event;
@@ -51,7 +51,7 @@
public void nonProjectEvent() {
Event eventMock = mock(Event.class);
eventHandler.onEvent(eventMock);
- verifyZeroInteractions(storeMock);
+ verifyNoInteractions(storeMock);
}
class PoolMock extends ScheduledThreadPoolExecutor {