From 7bd19fdf619a27f465f66f3c993567eaec16ec7a Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 3 Apr 2018 12:23:59 -0400 Subject: [PATCH] Fix KafkaMesListenerContTests for proper mocks https://build.spring.io/browse/SK-SK20X-34/ **Cherry-pick to 1.3.x** --- .../kafka/listener/KafkaMessageListenerContainerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java b/spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java index 4c5859fa39..bc81887bc5 100644 --- a/spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java +++ b/spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java @@ -652,7 +652,7 @@ public void testBrokerDownEvent() throws Exception { public void testNonResponsiveConsumerEventNotIssuedWithActiveConsumer() throws Exception { ConsumerFactory cf = mock(ConsumerFactory.class); Consumer consumer = mock(Consumer.class); - given(cf.createConsumer(isNull(), eq(""))).willReturn(consumer); + given(cf.createConsumer(isNull(), isNull())).willReturn(consumer); ConsumerRecords records = new ConsumerRecords(Collections.emptyMap()); CountDownLatch latch = new CountDownLatch(20); given(consumer.poll(anyLong())).willAnswer(i -> {