The mock object is now complete.
模拟对象现在已完成。
Mock objects and mock object controllers.
模拟对象和模拟对象控制器。
We had to create three mock object classes.
我们需要创建三个模拟对象类。
Exercise code that USES the mock object.
使用mock对象的测试代码。
This kind of mock object is sometimes called a fake.
这种mock对象有时候称为fake。
Testing with complex dependencies? Use a mock object.
测试带有复杂的依赖性?
We will enable such testing by creating a suitable mock object.
我们将通过创建合适的模拟对象来启用此类测试。
In these examples, we create separate modules for each mock object.
在这些示例中,我们将为每个模拟对象创建单独的模块。
These tests enable us to exercise the Customer mock object directly.
这些测试可让我们直接使用Customer模拟对象。
So a mock object must establish expectations, as well as behavior.
所以,mock对象必须建立预期和行为。
We will be using these later in our second mock object implementation.
稍后我们将在第二个模拟对象实现中使用它们。
This test uses a hand-written mock object to replace the FrogMobile.
这个测试使用了一个手动编写的 mock对象来替换 FrogMobile。
We now have enabled the tests to use both interfaces to our mock object.
现在我们已使测试对我们的模拟对象使用两个接口。
We also used an instance variable to store a reference to the mock object.
我们还使用了实例变量来存储对模仿对象的引用。
The setUp method instantiates the mock object and injects it into the aspect.
setUp方法实例化mock对象并将它注入到方面中。
A mock object based on a ClassB class is constructed and provided an expectation.
构建基于classb类的模拟对象并向其提供期望。
You can combine mock object testing with a variety of techniques and technologies.
您可以将模仿对象测试与各种技巧和技术组合起来。
Add methods to the mock object that allow you to initialize it properly for your tests.
在模拟对象里添加方法,使得您的测试正确地初始化。
A BPEL process makes several different calls to the same mock object in rapid succession.
BPEL流程连续快速地对同一模拟对象发出多个不同的调用。
In your test code, create a mock object implementing the same interface as the collaborator.
在测试代码中,创建模仿对象且实现与合作者相同的接口。
It can be treated just like a mock object. For example, the size method can be stubbed out.
它可被看作一个mock对象。
Finally, you can see the test step checking that the mock object did receive the correct data.
最后,您可以看到测试步骤正在检查模拟对象是否收到正确的数据。
The Invoke statement labelled NotifyCustomer: this is our second mock object invocation point.
标记为NotifyCustomer的invoke语句:这是第二个模拟对象的调用点。
Examine the values entered in the binding TAB to see how they refer to your mock object module.
检查在Binding选项卡中输入的值,了解它们如何引用您的模拟对象模块。
In unit testing language, this is called a mock object (see Resources for more information).
按照单元测试的术语,这称为模拟对象(mock object),更多信息参见参考资料中的链接。
The mock object classes we have can be reused and enhanced for future tests with minimal effort.
已有的模拟对象类可以再度使用,稍做修改就可以用于未来的测试。
When the mock object is destroyed, it checks that all expectations on it have been satisfied.
当mock对象销毁时,系统会检查其上的期望是否都满足了。
These are supplied to enable a quick demonstration of the mock object we are about to build next.
提供这些内容是为了能够快速演示我们接下来将要构建的模拟对象。
Wicket supports out-of-container unit testing through the use of a built-in mock object framework.
Wicket通过使用内置的模仿对象框架提供对容器外单元测试的支持。
Wicket supports out-of-container unit testing through the use of a built-in mock object framework.
Wicket通过使用内置的模仿对象框架提供对容器外单元测试的支持。
应用推荐