For example, in Ruby, I'd just add the stub to Thread. But with Scalamock, I'm not sure how to inject that mock into the class. Source: (StackOverflow) ...
確定! 回上一頁