From 650edc180cb825a80a84ad398d09a25a5a0970aa Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Mon, 4 Mar 2024 14:57:04 -0500 Subject: [PATCH] Fixing Kafka Binder unit test issues --- .../stream/binder/kafka/KafkaBinderUnitTests.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/binders/kafka-binder/spring-cloud-stream-binder-kafka/src/test/java/org/springframework/cloud/stream/binder/kafka/KafkaBinderUnitTests.java b/binders/kafka-binder/spring-cloud-stream-binder-kafka/src/test/java/org/springframework/cloud/stream/binder/kafka/KafkaBinderUnitTests.java index 1258872ca..c138a2b42 100644 --- a/binders/kafka-binder/spring-cloud-stream-binder-kafka/src/test/java/org/springframework/cloud/stream/binder/kafka/KafkaBinderUnitTests.java +++ b/binders/kafka-binder/spring-cloud-stream-binder-kafka/src/test/java/org/springframework/cloud/stream/binder/kafka/KafkaBinderUnitTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2023 the original author or authors. + * Copyright 2017-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Properties; import java.util.Set; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; @@ -68,6 +69,7 @@ import static org.mockito.Mockito.verify; /** * @author Gary Russell * @author Omer Celik + * @author Soby Chacko * @since 1.2.2 * */ @@ -265,6 +267,12 @@ class KafkaBinderUnitTests { return consumer; } + @Override + public Consumer createConsumer(String groupId, String clientIdPrefix, + String clientIdSuffix, Properties properties) { + return consumer; + } + @Override public boolean isAutoCommit() { return false;