mock server 学习笔记

来源:互联网 发布:安畅网络 程小中 编辑:程序博客网 时间:2024/04/28 15:05

Define Mock:

“Mock Objects simulate parts of the behavior of domain code, and are able to check whether they are used as defined. Domain classes can be tested in isolation by simulating their collaborators with Mock Objects.”


“Hand-writing classes for Mock Objects is not needed. 

Supports refactoring-safe Mock Objects: test code will not break at runtime when renaming methods or reordering method parameters 
Supports return values and exceptions. 
Supports checking the order of method calls, for one or more Mock Objects. ” 
0 0