Fixing Kafka Binder unit test issues

This commit is contained in:
Soby Chacko
2024-03-04 14:57:04 -05:00
parent fb430ce6bc
commit 650edc180c

View File

@@ -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<byte[], byte[]> createConsumer(String groupId, String clientIdPrefix,
String clientIdSuffix, Properties properties) {
return consumer;
}
@Override
public boolean isAutoCommit() {
return false;