Skip to content

Commit

Permalink
Use a newer Mockito version that works with Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
robtimus committed Apr 13, 2024
1 parent cd98779 commit 8a72346
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<version.gson>2.10.1</version.gson>
<version.httpclient>4.5.14</version.httpclient>
<version.httpmime>4.5.14</version.httpmime>
<version.mockito>5.11.0</version.mockito>
<version.powermock>2.0.9</version.powermock>
<version.snakeyaml>2.2</version.snakeyaml>
<version.spring-boot>3.2.4</version.spring-boot>
Expand Down Expand Up @@ -151,6 +152,15 @@
<version>${version.spring-boot}</version>
<scope>test</scope>
<exclusions>
<!-- Exclude Mockito and include a newer version instead -->
<exclusion>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
</exclusion>
<exclusion>
<!-- This comes with an older version of SLF4J which causes conflicts -->
<groupId>com.jayway.jsonpath</groupId>
Expand All @@ -173,6 +183,19 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${version.mockito}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
Expand Down

0 comments on commit 8a72346

Please sign in to comment.