Skip to content

Commit ebbe5f0

Browse files
committed
Fix KafkaMesListenerContTests for proper mocks
https://build.spring.io/browse/SK-SK20X-34/ **Cherry-pick to 1.3.x** # Conflicts: # spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java
1 parent 4c5399d commit ebbe5f0

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
@@ -435,7 +435,7 @@ public void publishEvent(ApplicationEvent event) {
435435
public void testNonResponsiveConsumerEventNotIssuedWithActiveConsumer() throws Exception {
436436
ConsumerFactory<Integer, String> cf = mock(ConsumerFactory.class);
437437
Consumer<Integer, String> consumer = mock(Consumer.class);
438-
given(cf.createConsumer(anyString(), eq(""))).willReturn(consumer);
438+
given(cf.createConsumer(anyString(), anyString())).willReturn(consumer);
439439
ConsumerRecords records = new ConsumerRecords(Collections.emptyMap());
440440
CountDownLatch latch = new CountDownLatch(20);
441441
given(consumer.poll(anyLong())).willAnswer(i -> {

0 commit comments

Comments
 (0)