网站首页  词典首页

请输入您要查询的英文单词:

 

单词 mock object
释义

mock object

  • 网络模拟对象;模仿对象;假对象
1.
模拟对象
模拟对象mock Object)提供了一种经过证明是成功的解决方法。1、 模拟对象取代真实对象的位置,用于测试一些与真实对 …
changshan.blogspot.com
2.
模仿对象
模仿对象Mock object)是为起中介者作用的对象编写单元测试的有用方法。测试对象调用模仿域对象(它只断言以正确的次 …
www.cjsdn.net
3.
假对象
使用假对象Mock Object)测试数据仓库 我们能使用数据库级别的测试来测试一个数据仓库。
www.javanb.com
4.
模拟的对象
...外部的数据源,比如Database,就需要通过一些模拟的对象MOCK object)来模拟Database, (但这也只有在真实环境的 …
www.uml.org.cn
5.
模拟物件
模棱 英文, 翻译, 发音, 字典 中文 英文 ... 模拟器 emulator 模拟物件 mock object 模夜蛾属 noctua ...
zh.glosbe.com
6.
仿制对象
我将介绍一些“测试替身”(test double)和“仿制对象”(mock object)的概念。为了要做到彻底地测试驱动编码,它们都很重要。
www.egou.com
7.
仿造对象
这种模式就叫做“伪造对象”(Fake Object)或“仿造对象”(Mock Object),它会在本书中多次出现。你可以看一下在这个测试 …
book.51cto.com

例句

释义:
1.
Add methods to the mock object that allow you to initialize it properly for your tests.
在模拟对象里添加方法,使得您的测试正确地初始化。
www.ibm.com
2.
Examine the values entered in the binding tab to see how they refer to your mock object module.
检查在Binding选项卡中输入的值,了解它们如何引用您的模拟对象模块。
www.ibm.com
3.
The total cost of this method is the same as using the interface to create a mock object class.
这种方法所花费的成本与使用接口创建一个模拟对象类所花费的成本一样。
www.ibm.com
4.
Wicket supports out-of-container unit testing through the use of a built-in mock object framework.
Wicket通过使用内置的模仿对象框架提供对容器外单元测试的支持。
www.ibm.com
5.
A mock object enables you to test your component without having to depend on the external resource.
模拟对象允许您对组件进行测试,而不必依赖于外部资源。
www.ibm.com
6.
The mock object is now ready for use in the ServiceClass class as a real object.
模拟对象现已准备好在ServiceClass类中作为实际对象使用。
www.ibm.com
7.
This collaborator must be replaced with a mock object.
必须用模仿对象替换这个合作者。
www.ibm.com
8.
While this pattern is very effective for many cases, sometimes the mock object cannot be passed into the object being tested.
虽然这种模式对于许多情况都非常有效,但模仿对象有时不能被传递到正在测试的对象。
www-128.ibm.com
9.
You can combine mock object testing with a variety of techniques and technologies.
您可以将模仿对象测试与各种技巧和技术组合起来。
www-128.ibm.com
10.
Optional: create a unit test to assure that the original target object's factory method still returns the correct, non-mock object.
可选的:创建单元测试以确保原始目标对象的工厂方法仍返回正确的非模仿对象。
www.ibm.com
1.
In the last step, the Mock Object reports the Retrieval Notification it received.
在最后一步中,模拟对象将报告它收到的检索通知。
www.ibm.com
2.
The mock object classes we have can be reused and enhanced for future tests with minimal effort.
已有的模拟对象类可以再度使用,稍做修改就可以用于未来的测试。
www.ibm.com
3.
In this solution, the code that performs the lookup is replaced automatically with code that returns a mock object instead.
在这个解决方案中,执行查找的代码被返回模仿对象的代码自动替换。
www-128.ibm.com
4.
A mock object conforms to the interface of the real object, but has just enough code to fool the tested object and track its behavior.
模仿对象符合实际对象的接口,但只要有足够的代码来“欺骗”测试对象并跟踪其行为。
www.ibm.com
5.
In the specialization object, override the creation method to return a mock object that accommodates your test.
在特殊化对象中,覆盖创建方法以返回为测试提供的模仿对象。
www-128.ibm.com
6.
And the fourth and final change required is to bring the RMock mock object out of record state into ready state.
而第四项也是最后一项必需的更改是使RMock模拟对象脱离记录状态转入就绪状态。
www.ibm.com
7.
Create a mock object class as a subclass of the concrete class.
创建一个模拟对象类作为具体类中的一个子类
www.ibm.com
8.
In your test code, create a mock object implementing the same interface as the collaborator.
在测试代码中,创建模仿对象且实现与合作者相同的接口。
www-128.ibm.com
9.
So a mock object must establish expectations, as well as behavior.
所以,mock对象必须建立预期和行为。
www.ibm.com
10.
A BPEL process makes several different calls to the same mock object in rapid succession.
BPEL流程连续快速地对同一模拟对象发出多个不同的调用。
www.ibm.com
1.
Since the method under test is written to the interfaces, we can create a mock object for each interface for our tests.
既然测试里的方法写在接口中,我们可以为我们测试的每一个接口创建一个模拟对象。
www.ibm.com
2.
The test then creates a mock object with a send method.
代码于是创建了一个有send方法的mock对象。
www.infoq.com
3.
The mock object must implement the Customer interface from the L_Archive library.
模拟对象必须从L_Archive库实现Customer接口。
www.ibm.com
4.
In this case, I can use this mock object for only a single test case.
在这个示例中,这个mock对象只能用于测试用例。
www.ibm.com
5.
Image symbol (ICON) image through the mock object symbol or similar object while the composition.
图像符号(ICON)图像符号是通过模拟对象或与对象的相似而构成的。
www.docba.cn
6.
In these examples, we create separate modules for each mock object.
在这些示例中,我们将为每个模拟对象创建单独的模块。
www.ibm.com
7.
We also used an instance variable to store a reference to the mock object.
我们还使用了实例变量来存储对模仿对象的引用。
www.ibm.com
8.
When using jMock (and, indeed, RMock), unique identifiers are required per mock object setup within a single test case.
使用jMock(当然,还有RMock)时,在单一测试用例内每个模拟对象设置都要求有惟一标识符。
www.ibm.com
9.
Finally, you can see the test step checking that the mock object did receive the correct data.
最后,您可以看到测试步骤正在检查模拟对象是否收到正确的数据。
www.ibm.com
10.
050-CheckNotification will then verify that the CustomerCommiunication mock object was called with the correct data.
050-CheckNotification然后将验证是否使用正确的数据调用了CustomerCommiunication模拟对象。
www.ibm.com
1.
The Collaborator mock object is set up correctly, and the mockClassB object performs as expected.
Collaborator模拟对象已被正确设置,并且mockClassB对象将按预期执行。
www.ibm.com
2.
These tests enable us to exercise the Customer mock object directly.
这些测试可让我们直接使用Customer模拟对象。
www.ibm.com
3.
We now have enabled the tests to use both interfaces to our mock object.
现在我们已使测试对我们的模拟对象使用两个接口。
www.ibm.com
4.
These are supplied to enable a quick demonstration of the mock object we are about to build next.
提供这些内容是为了能够快速演示我们接下来将要构建的模拟对象。
www.ibm.com
5.
We had to write approximately 50 lines of code that actually implemented the behavior we needed in our mock object classes.
我们大约需要编写50行代码来真正执行我们在模拟对象类中所需的行为。
www.ibm.com
6.
The Invoke statement labelled NotifyCustomer: this is our second mock object invocation point.
标记为NotifyCustomer的Invoke语句:这是第二个模拟对象的调用点。
www.ibm.com
7.
Here, we will show how to apply the same ideas to mock object return values, externalising the return values to XML files.
这里,我们将介绍如何对模拟对象的返回值应用相同的思想,将返回值外化到XML文件。
www.ibm.com
8.
A mock object based on a ClassB class is constructed and provided an expectation.
构建基于ClassB类的模拟对象并向其提供期望。
www.ibm.com
9.
030-LoadCustomers initialises the Customer mock object with some customer data.
030-LoadCustomers使用一些客户数据初始化Customer模拟对象。
www.ibm.com
10.
The third change involves the construction of one or more expectations on the RMock mock object with the correct syntax.
第三项更改涉及用正确语法构造对RMock模拟对象的一个或多个期望。
www.ibm.com
1.
We will be using these later in our second mock object implementation.
稍后我们将在第二个模拟对象实现中使用它们。
www.ibm.com
2.
Sometimes you may want to develop much more complex mock object classes because they will give you additional benefits.
有时您可能需要开发更复杂的模拟对象类,因为他们会带给您额外的收益。
www.ibm.com
3.
When we implement our mock object, we will need to consider how to produce the different errors needed to drive the different paths.
在实现模拟对象时,我们需要考虑如何生成驱动不同路径所需的不同错误。
www.ibm.com
4.
For example, you can create a mock object for Amazon S3 which always reads files from your local disk.
例如,你可以为AmazonS3创建一个从本地硬盘读取文件的Mock对象。
dongxi.net
5.
According to its inventors, a mock object is supposed to perform all of its own validation inside its
根据模仿对象的创造者所说,它应该在其
www-128.ibm.com
6.
Mock object: A subclass (or implementation) of the collaborator that follows the mock object pattern
模仿对象:遵循模仿对象模式的合作者的子类(或实现)
www.ibm.com
7.
Mock objects and mock object controllers
模拟对象和模拟对象控制器
www.ibm.com
随便看

 

英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
更新时间:2025/2/6 11:29:28