diff --git a/pmd-core/src/test/java/net/sourceforge/pmd/RulesetFactoryTestBase.java b/pmd-core/src/test/java/net/sourceforge/pmd/RulesetFactoryTestBase.java index 9396ad128f..52e1f1ec0e 100644 --- a/pmd-core/src/test/java/net/sourceforge/pmd/RulesetFactoryTestBase.java +++ b/pmd-core/src/test/java/net/sourceforge/pmd/RulesetFactoryTestBase.java @@ -12,7 +12,7 @@ import static org.mockito.Mockito.eq; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.verifyZeroInteractions; +import static org.mockito.Mockito.verifyNoMoreInteractions; import java.text.MessageFormat; import java.util.Map; @@ -43,7 +43,7 @@ class RulesetFactoryTestBase { } protected void verifyNoWarnings() { - verifyZeroInteractions(mockReporter); + verifyNoMoreInteractions(mockReporter); } protected static Predicate containing(String part) { diff --git a/pom.xml b/pom.xml index 03d51fbca4..297e08f4be 100644 --- a/pom.xml +++ b/pom.xml @@ -890,7 +890,7 @@ org.mockito mockito-core - 2.28.2 + 4.11.0 test