How to test the send method from a Kafka Producer with callback using mockito?

前端 未结 0 1955
星月不相逢
星月不相逢 2021-02-12 16:23

I am trying to test a method and for that I am using mockito. However, my mock is not getting inside into the if\'s condition and goes directly to the flush\'s line.

I w

相关标签:
回答
  • 消灭零回复
提交回复
热议问题