[ https://issues.apache.org/jira/browse/KAFKA-12220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17267138#comment-17267138 ]
Chia-Ping Tsai commented on KAFKA-12220: ---------------------------------------- the most usages of PowerMock is in stream and connect-runtime. I'd like to separate the task by "class". For example: 1. replace PowerMock by Mockito for xxx.java 2. replace PowerMock by Mockito for xxx.java The pattern of PowerMock is different from Mockito so separating the tasks by class level can reduce the size of PR and simplify reviewers life. [~ijuma] WDYT? > Replace PowerMock by Mockito > ---------------------------- > > Key: KAFKA-12220 > URL: https://issues.apache.org/jira/browse/KAFKA-12220 > Project: Kafka > Issue Type: Improvement > Reporter: Chia-Ping Tsai > Assignee: Chia-Ping Tsai > Priority: Major > > We are migrating project from junit 4 to junit 5 (KAFKA-7339). PowerMock, > however, does not support junit 5 totally > (https://github.com/powermock/powermock/issues/830). Hence, we ought to > replace PowerMock by Mockito before migrating to junit 5 since rewriting all > tests which are depending on PowerMock can bring a bunch of changes. -- This message was sent by Atlassian Jira (v8.3.4#803005)