Skip to content

Commit

Permalink
chore: add dependency byte-buddy to enable mockStatic in Java 21 (#10389
Browse files Browse the repository at this point in the history
)

* chore: add dependency byte-buddy to enable mockStatic in Java 21

* Add code comments for mockito-inline and byte-buddy
  • Loading branch information
jaycee-li authored Feb 16, 2024
1 parent 96f8994 commit 184e04b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions google-cloud-jar-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,20 @@
<version>4.11.0</version>
<scope>test</scope>
</dependency>
<!-- for java-vertexai unit tests, can be removed once we update to mockito-core >= 5.0.0 -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>4.11.0</version>
<scope>test</scope>
</dependency>
<!-- for java-vertexai unit tests, can be removed once we update to mockito-core >= 5.3.0 -->
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.14.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
Expand Down

0 comments on commit 184e04b

Please sign in to comment.