有人可以帮助实现以下目标吗?我正在使用Mockito-Kotlin编写我的单元测试。
mock<MyClass> {
on { someMethodThatReturnsVoid(any<ParamClass>)} do { //capture the param value}
on { someOtherThatReturnsB() } do { // use the captured param instance
//to construct B instance to return }
}