Skip to content

Commit

Permalink
bump mockito to 5.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Mar 4, 2024
1 parent 06495fd commit fdc5dc5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
13 changes: 1 addition & 12 deletions pinot-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -324,18 +324,7 @@
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<!--
NOTE: use `mockito-inline` here instead of `mockito-core`, as mockito-core does not support mocking static function:
```
org.mockito.exceptions.base.MockitoException:
The used MockMaker SubclassByteBuddyMockMaker does not support the creation of static mocks
Mockito's inline mock maker supports static mocks based on the Instrumentation API.
You can simply enable this mock mode, by placing the 'mockito-inline' artifact where you are currently using 'mockito-core'.
Note that Mockito's inline mock maker is not supported on Android.
```
-->
<artifactId>mockito-inline</artifactId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion pinot-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
3 changes: 1 addition & 2 deletions pinot-segment-local/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<!-- required for static mock in IndexCreatorOverrideTest -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
8 changes: 1 addition & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1194,13 +1194,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.5.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>5.2.0</version>
<version>5.11.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit fdc5dc5

Please sign in to comment.