This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch issue/SLING-12027
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-graphql-core.git

commit a3a2e8e1afd6e2d036ecc14a94adb8751603a18c
Author: Robert Munteanu <romb...@apache.org>
AuthorDate: Tue Sep 19 11:03:38 2023 +0200

    SLING-12027 - GraphQL core fails to build with Java 17
    
    Upgrade to the latest Mockito
---
 pom.xml                                                               | 4 ++--
 .../sling/graphql/core/cache/SimpleGraphQLCacheProviderTest.java      | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index c79dcbc..dd1ab24 100644
--- a/pom.xml
+++ b/pom.xml
@@ -226,8 +226,8 @@
     </dependency>
     <dependency>
       <groupId>org.mockito</groupId>
-      <artifactId>mockito-inline</artifactId>
-      <version>3.5.11</version>
+      <artifactId>mockito-core</artifactId>
+      <version>5.4.0</version>
       <scope>test</scope>
     </dependency>
     <dependency>
diff --git 
a/src/test/java/org/apache/sling/graphql/core/cache/SimpleGraphQLCacheProviderTest.java
 
b/src/test/java/org/apache/sling/graphql/core/cache/SimpleGraphQLCacheProviderTest.java
index fbbafc2..f78a5c4 100644
--- 
a/src/test/java/org/apache/sling/graphql/core/cache/SimpleGraphQLCacheProviderTest.java
+++ 
b/src/test/java/org/apache/sling/graphql/core/cache/SimpleGraphQLCacheProviderTest.java
@@ -31,10 +31,9 @@ import org.junit.Test;
 import com.codahale.metrics.MetricRegistry;
 
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
-import static org.mockito.Matchers.anyString;
+import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 

Reply via email to