In your test code, create a mock object implementing the same interface as the collaborator.

  • 在测试代码中,创建模仿对象且实现与合作者相同的接口。
目录 查词历史