Skip to content

Commit

Permalink
Fix KafkaMesListenerContTests for proper mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Apr 3, 2018
1 parent b688311 commit 7bd19fd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -652,7 +652,7 @@ public void testBrokerDownEvent() throws Exception {
public void testNonResponsiveConsumerEventNotIssuedWithActiveConsumer() throws Exception {
ConsumerFactory<Integer, String> cf = mock(ConsumerFactory.class);
Consumer<Integer, String> 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 -> {
Expand Down

0 comments on commit 7bd19fd

Please sign in to comment.