Is there any way to mock println() in Kotlin?

前端 未结 0 1315
心在旅途
心在旅途 2020-12-11 11:36

I have used mockito to verify that println() is called in kotlin. However, it always show error like this.

Wanted but not invoked:
printStream.println(

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