From a856b622ece197c3cbde735924ff38d7f6e958cb Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Tue, 10 Jan 2023 12:09:01 +0100 Subject: [PATCH] Bump mockito from 2.28.2 to 4.11.0 This fixes the build with Java 17 --- .../test/java/net/sourceforge/pmd/RulesetFactoryTestBase.java | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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