RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
UT:FakevsStubvsMock-创新互联

Fake

Fakes are objects that have working implementations, but not same as production one. Usually they take some shortcut and have simplified version of production code.

创新互联公司成立与2013年,先为乌恰等服务建站,乌恰等地企业,进行企业商务咨询服务。为乌恰企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。

Stub

Stub is an object that holds predefined data and uses it to answer calls during tests. It is used when we cannot or don’t want to involve objects that would answer with real data or have undesirable side effects.

Mock

Mocks are objects that register calls they receive.
In test assertion we can verify on Mocks that all expected actions were performed.

ref

https://blog.pragmatists.com/test-doubles-fakes-mocks-and-stubs-1a7491dfa3da


网页题目:UT:FakevsStubvsMock-创新互联
文章出自:http://scyingshan.cn/article/hehej.html