chia7712 commented on code in PR #15916:
URL: https://github.com/apache/kafka/pull/15916#discussion_r1600041904
##########
core/src/test/java/kafka/test/annotation/Type.java:
##########
@@ -22,30 +22,31 @@
import kafka.test.junit.ZkClusterInvocationContext;
import org.junit.jupiter.api.extension.TestTemplateInvocationContext;
-import java.util.function.Consumer;
+import java.util.List;
+import java.util.Collections;
/**
* The type of cluster config being requested. Used by {@link
kafka.test.ClusterConfig} and the test annotations.
*/
public enum Type {
KRAFT {
@Override
- public void invocationContexts(String baseDisplayName, ClusterConfig
config, Consumer<TestTemplateInvocationContext> invocationConsumer) {
- invocationConsumer.accept(new
RaftClusterInvocationContext(baseDisplayName, config, false));
+ public List<TestTemplateInvocationContext> invocationContexts(String
baseDisplayName, ClusterConfig config) {
Review Comment:
We don't need `List` now, right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]