Kent Beck describes a mock object as a testing object, one that implements a fake version of an expensive or complicated resource by answering constants.
Kent Beck将模拟对象描述为测试对象,该对象可以使用常量进行响应,从而实现开销大或复杂的资源的模仿版本。
2
An intrinsic object that provides basic mathematics functionality and constants.
提供基本数学函数和常数的内部对象。
3
There are a number of considerations (versioning, transient objects, Enum constants, etc.) when using object serialization, so I would suggest you do some reading about the subject.