You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Lianet Magrans (Jira)" <ji...@apache.org> on 2026/10/09 15:35:00 UTC
[jira] [Resolved] (KAFKA-19382) Upgrade junit from 5.10 to 5.13
[ https://issues.apache.org/jira/browse/KAFKA-19382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lianet Magrans resolved KAFKA-19382.
------------------------------------
Resolution: Fixed
Closing as I see the upgrade merged
> Upgrade junit from 5.10 to 5.13
> -------------------------------
>
> Key: KAFKA-19382
> URL: https://issues.apache.org/jira/browse/KAFKA-19382
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Nick Guo
> Priority: Minor
>
> A new behavior was introduced to junit 5.12 (https://github.com/junit-team/junit5/commit/89a46dfa10c6447ef010fbff7903bfcb3c18975a), disallowing `ClusterTestExtensions` to generate empty invocation contexts. However, `ClusterTestExtensions` is invoked by junit extension so it could result in empty contexts for some tests.
> {code:java}
> Gradle Test Run :core:test > Gradle Test Executor 1 > UserClientIdQuotaTest > testProducerConsumerOverrideLowerQuota(String) > initializationError FAILED
> org.junit.platform.commons.PreconditionViolationException: Provider [ClusterTestExtensions] did not provide any invocation contexts, but was expected to do so. You may override mayReturnZeroTestTemplateInvocationContexts() to allow this.
> at java.base@21.0.5/java.util.ArrayList.forEach(ArrayList.java:1596)
> at java.base@21.0.5/java.util.ArrayList.forEach(ArrayList.java:1596)
> kafka.api.UserClientIdQuotaTest.initializationError failed, log available in /home/chia7712/project/kafka/core/build/reports/testOutput/kafka.api.UserClientIdQuotaTest.initializationError.test.stdout
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)