You can combine mock object testing with a variety of techniques and technologies.
您可以将模仿对象测试与各种技巧和技术组合起来。
A mock object is a replacement for a real object that we create for the express purpose of testing.
为了达到快速测试的目的,我们创建模拟对象来代替真实的对象。
We will enable such testing by creating a suitable mock object.
我们将通过创建合适的模拟对象来启用此类测试。
Wicket supports out-of-container unit testing through the use of a built-in mock object framework.
Wicket通过使用内置的模仿对象框架提供对容器外单元测试的支持。
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.
KentBeck将模拟对象描述为测试对象,该对象可以使用常量进行响应,从而实现开销大或复杂的资源的模仿版本。
The isolated notion of unit testing is behind the myriad mock-object libraries that facilitate isolating a particular object from its external dependencies.
单元测试的隔离概念有无数的模拟对象库作后盾,这些库便利了将一个特定的对象从其外部依赖项中隔离出来。
A mock is a "fake" object that allows you to focus on testing important features within the scope of the Rails project, rather than on interactions with external systems that you have no control over.
mock是一个“伪”对象,它让我们能够集中精力测试Rails项目范围内的重要特性,而不必关注与无法控制的外部系统的交互。
Your Principal object is also a mock; we've taken the approach of implementing a MockPrincipal that associates groups directly with the principal for convenient testing.
您的Principal对象也是mock;我们采用实现 MockPrincipal 的方法,将组与主体直接关联,以方便测试。
Your Principal object is also a mock; we've taken the approach of implementing a MockPrincipal that associates groups directly with the principal for convenient testing.
您的Principal对象也是mock;我们采用实现 MockPrincipal 的方法,将组与主体直接关联,以方便测试。
应用推荐