How to mock an object that is declared and created in the local scope of a method?

前端 未结 0 1835
忘掉有多难
忘掉有多难 2021-01-31 21:58

So I am unit testing a class(it extends from SourceTask in org.apache.kafka.connect.source.SourceTask) and this class needs to Mock some objects than interact with it to do unit

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