【发布时间】:2021-11-30 23:22:22
【问题描述】:
我有一个可以简化如下的类
class my {
val b = new subClass()
def a () = "not mocked"
class subClass {
def ret () = "not mocked"
}
}
我需要一些方法来模拟 my.b.ret()
【问题讨论】:
-
你尝试了什么?什么不工作?
标签: scala mocking mockito scalatest