Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想模拟一些我传递给演员的服务。然后我想验证模拟服务是否被调用。最好我想通过一个存根,这样我就可以为了测试而模拟服务行为。
但是我不知道如何断言存根在主线程中被调用。
有没有办法做到这一点?
我检查了
trait AsyncAssertions
但这似乎并不能解决问题。