Skip to content

Commit 7bd19fd

Browse files
committed
Fix KafkaMesListenerContTests for proper mocks
https://build.spring.io/browse/SK-SK20X-34/ **Cherry-pick to 1.3.x**
1 parent b688311 commit 7bd19fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ public void testBrokerDownEvent() throws Exception {
652652
public void testNonResponsiveConsumerEventNotIssuedWithActiveConsumer() throws Exception {
653653
ConsumerFactory<Integer, String> cf = mock(ConsumerFactory.class);
654654
Consumer<Integer, String> consumer = mock(Consumer.class);
655-
given(cf.createConsumer(isNull(), eq(""))).willReturn(consumer);
655+
given(cf.createConsumer(isNull(), isNull())).willReturn(consumer);
656656
ConsumerRecords records = new ConsumerRecords(Collections.emptyMap());
657657
CountDownLatch latch = new CountDownLatch(20);
658658
given(consumer.poll(anyLong())).willAnswer(i -> {

0 commit comments

Comments
 (0)