Mock a “global” variable on Kotlin

前端 未结 0 708
长情又很酷
长情又很酷 2021-01-23 02:59

Is there a way to change the return value of the variable called when running unit tests? Like mocking the result of the variable. \'settingsState\'?

I a

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