[
https://issues.apache.org/jira/browse/HADOOP-19243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888816#comment-17888816
]
ASF GitHub Bot commented on HADOOP-19243:
-----------------------------------------
pan3793 commented on code in PR #6968:
URL: https://github.com/apache/hadoop/pull/6968#discussion_r1797543974
##########
hadoop-cloud-storage-project/hadoop-huaweicloud/pom.xml:
##########
@@ -173,15 +173,27 @@
</dependency>
<dependency>
<groupId>org.powermock</groupId>
- <artifactId>powermock-api-mockito</artifactId>
- <version>1.7.4</version>
+ <artifactId>powermock-api-mockito2</artifactId>
+ <version>2.0.9</version>
Review Comment:
PowerMock was introduced because Mockito prior to 3.4.0 did not support
mocking static method, with the Mockito 4 upgrading, PowerMock can be purged
> Upgrade Mockito version to 4.11.0
> ---------------------------------
>
> Key: HADOOP-19243
> URL: https://issues.apache.org/jira/browse/HADOOP-19243
> Project: Hadoop Common
> Issue Type: Sub-task
> Reporter: Muskan Mishra
> Assignee: Muskan Mishra
> Priority: Major
> Labels: pull-request-available
>
> While Compiling test classes with JDK17, faced error related to Mockito:
> *Mockito cannot mock this class.*
> So to make it compatible with jdk17 we have to upgrade the version of
> mockito-core as well as mockito-inline.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]