[ https://issues.apache.org/jira/browse/HDFS-15755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17256284#comment-17256284 ]
Ayush Saxena commented on HDFS-15755: ------------------------------------- Do you tend to use Powermock someewhere in hdfs? If yes, can you link that jira. If no, then probably we can wait when we have a requirement to do so. In case of yes : * Why this? {code:java} <artifactId>mockito-core</artifactId> + <version>2.8.9</version> {code} Version should be changed in hadoop-project/pom.xml only. * Here also version should be picked up from hadoop-project/pom.xml can use powermock.version variable {code:java} + <dependency> + <groupId>org.powermock</groupId> + <artifactId>powermock-api-mockito2</artifactId> + <version>1.7.1</version> {code} And usually the dependency should be added there as well > Import powermock to test of hadoop-hdfs-project > ----------------------------------------------- > > Key: HDFS-15755 > URL: https://issues.apache.org/jira/browse/HDFS-15755 > Project: Hadoop HDFS > Issue Type: Improvement > Components: hdfs, test > Reporter: Yang Yun > Assignee: Yang Yun > Priority: Minor > Attachments: HDFS-15755.001.patch > > > For mocking static methods in unit test, import PowerMock to > hadoop-hdfs-project. > The same version PowerMock has been imported in part of hadoop-yarn-project. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org