Chia-Ping Tsai created KAFKA-19382:
--------------------------------------

             Summary: 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: Chia-Ping Tsai


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)

Reply via email to