Chia-Ping Tsai created KAFKA-17160:
--------------------------------------
Summary: Always import `mockito-inline` if the mockito version is
4.x
Key: KAFKA-17160
URL: https://issues.apache.org/jira/browse/KAFKA-17160
Project: Kafka
Issue Type: Improvement
Reporter: Chia-Ping Tsai
Assignee: Chia-Ping Tsai
Currently, we pick up mockito artifact according to java version[0]. It can
cause mock error on final class when we run JDK 11+ with scala 2.12, since it
imports the 4.x mockito-core which does not include features of mockito-line.
In short, the artifact should be based on mockito version rather than java
version. Otherwise, some tests (for example, `PCollectionsImmutableSetTest`)
never pass
[0] https://github.com/apache/kafka/blob/trunk/gradle/dependencies.gradle#L74
--
This message was sent by Atlassian Jira
(v8.20.10#820010)