网站首页  词典首页

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

 

单词 mock objects
释义

mock objects

  • 网络模拟对象;模仿物件;假对象
1.
模拟对象
模拟对象Mock objects)同样有利于单独测试领域对象。但是在领域层不要滥用模拟对象是很重要的。
blog.csdn.net
2.
模仿物件
关於测试 ... 先写测试( Test First) 模仿物件( Mock Objects) ...
www.dotspace.idv.tw
3.
假对象
因此我们引入“假对象(Mock Objects)”这个概念。在单元测试中“假对象”可以模拟真实复杂的对象。
hi.baidu.com
4.
模拟物件
-M- ... Miss - 遗漏 Mock Objects - 模拟物件 My Queries - 我的查询 ...
msdn.microsoft.com
5.
模拟的对象
...不是密封类(sealed class)。这个特点让创建模拟的对象(mock objects)变得很容易——使用模拟对象,我们可以很轻松地对控 …
www.cnblogs.com

例句

释义:
1.
As you grow more comfortable using mock objects, you will develop a feel for how much validation responsibility to delegate to the mock.
随着您更加熟练地使用模仿对象,对于将多少验证职责代理给模仿对象,您将会深有体会。
www-128.ibm.com
2.
At this point, it's worth asking what benefits we achieved with the mock objects and what did they cost.
在这一环节,值得探讨我们使用模拟对象得到的收益是什么以及花费的代价是什么。
www.ibm.com
3.
As you'll see in the Testing section, a mock-objects approach perfectly matches the goal.
正如您在测试一节看到的,模仿对象方法完全满足该目标。
www.ibm.com
4.
With jMock, you can extract proxy implementations from created mock objects, on which expectations have already been set.
使用jMock,您可以从已创建的模拟对象(其中期望已经被设定)中提取代理实现。
www.ibm.com
5.
Mock objects have gotten a lot of publicity lately, but I think they're overused and often too heavy to be practical.
最近模仿对象得到了大力推广,但我认为它们被滥用了,它们太“重”以至于不切实际。
www.ibm.com
6.
Supports refactoring-safe Mock Objects: test code will not break at runtime when renaming methods or reordering method parameters.
支持重构安全的模拟对象:当重命名方法或者对方法的参数重新排序时,测试代码不会在运行时中断程序。
wenku.baidu.com
7.
Examine the test specifications to remind yourself of how the tests and mock objects cooperate to verify the process behaviour.
检查测试规范,提醒自己如何结合使用测试和模拟对象来验证流程行为。
www.ibm.com
8.
Before we start work on the mock objects, you might like to examine the business process as it is currently implemented.
在开始使用模拟对象之前,您可能希望检查当前实现的业务流程。
www.ibm.com
9.
Mock objects provide a way out of this dilemma.
模仿对象提供了解决这一困难的方法。
www-128.ibm.com
10.
If you have no unit testing, you also don't have mock objects or other testing techniques common in code.
如果你没有单元测试,你的代码里也不会有公共的Mock对象或其它测试技术。
www.infoq.com
1.
The next two patterns illustrate how to employ delegation and mock objects to check both aspects of your aspect (pun intended).
下面两个模式展示如何使用委派和mock对象检查方面的这两个部分。
www.ibm.com
2.
So a good approach is to develop service mocks, mock objects that are simple emulators of real services.
因此,一个不错的方法就是开发服务模拟,模拟对象是实际服务的简单仿真程序。
www.ibm.com
3.
In time, the number of mock objects can grow with the number of application classes.
最终,模拟对象数目可以随着应用程序类数目的增长而增长。
www.ibm.com
4.
It has almost completely removed the need for mock objects in most of my tests.
在大多数我的测试中,它几乎完全避免了Mock对象的需要。
www.infoq.com
5.
Our test code, specifically the mock objects, give us total control over the database results.
我们的测试代码,特别是模拟对象,使我们能完全控制数据库结果。
www.ibm.com
6.
This allows for a reliable testing strategy that uses dynamic mock objects.
这需要考虑到使用动态模仿对象的可靠测试策略。
www.ibm.com
7.
Mock objects are used to verify that the expected values are being generated.
模拟对象用于验证预期值正在生成。
www.ibm.com
8.
The process for building mock objects from interfaces is simple, straightforward, and helps me develop effective unit test suites.
从接口创建模拟对象的过程简单易行,并能帮助我们开发有效的单元测试套件。
www.ibm.com
9.
Also note that with jMock and RMock, the framework checks all expectations across all mock objects at the end of, or during, the test run.
另请注意,使用jMock和RMock,框架将在测试运行结束时或测试运行期间在所有模拟对象中检查所有期望。
www.ibm.com
10.
Figure 5 shows the relationship between the test specifications, the process, and the mock objects we have described.
图5显示了我们介绍的测试规范、流程和模拟对象之间的关系。
www.ibm.com
1.
A popular technique for simplifying unit tests is to create mock objects that are used just in the tests.
简化单元测试的一个流行技巧就是创建仅用于测试中的模拟对象。
www.ibm.com
2.
I create two mock objects for this project to simulate the GPS device and the UI, respectively.
我为此项目创建了两个模拟对象,分别模拟GPS设备和UI。
www.ibm.com
3.
Both of them use the CGLIB library to create mock objects for classes that do not have interfaces.
它们都通过使用CGLIB来为那些没有接口的类创建模仿(moke)对象。
blog.sina.com.cn
4.
Like mock objects, SDAOs replace existing objects with ones developed specifically for testing.
与模仿对象一样,SDAO用专门为测试开发的对象取代现有对象。
www.ibm.com
5.
The third step in this SOA development process is to develop service mocks -- mock objects that pass the service tests.
此SOA开发流程的第三步是开发服务模拟——通过服务测试的模拟对象。
www.ibm.com
6.
Mock objects are so fundamental to the way that I think about DAOs that I couldn't imagine implementing one without the other.
在我考虑DAO的方式中,模仿对象是很基本的,以致我无法想象在缺少其中一个的情况下如何实现另一个。
www.ibm.com
7.
In particular, my design employed mock objects to make testing easier.
尤其是,我的设计利用了模仿对象来简化测试。
www.ibm.com
8.
Mock objects were championed by Tim Mackinnon, Steve Freeman, and Philip Craig 1 and have become a staple in the unit testing toolbox.
模拟对象被TimMackinnon、SteveFreeman和PhilipCraig1所支持并成为单元测试工具箱的主要组成部分。
www.ibm.com
9.
Is a framework that supports the implementation of mock objects.
是支持模仿对象实现的框架。
www-128.ibm.com
10.
The layer is well aware of the database, so neither mock objects nor POJT techniques should be applied.
该层对数据库非常敏感,所以该层不能应用模仿对象或POJT技术。
www.ibm.com
1.
Hand-writing classes for Mock Objects is not needed.
不需要为模拟对象手动编写类。
wenku.baidu.com
2.
Note that in this example, I combine mock targets with mock objects (as described in Section III, Pattern 2).
注意在这个例子中,我结合了mock目标和mock对象(如在第III节,模式2中所描述的)。
www.ibm.com
3.
An alternative is fake data, called stubs or mock objects.
另一种选择就是使用称之为Stub或Mock对象的假数据。
dongxi.net
4.
They suspect, for example, that the fact that we use very few Mock Objects is due to working on simple problems.
比如,他们怀疑我们很少使用Mock对象是因为我们处理的问题太简单。
www.bing.com
5.
Now a word of caution: mock objects can be taken too far.
最后,提出一条警告:使用mock对象可能做得太过分。
www.ibm.com
6.
We will also present some techniques for creating mock objects quickly.
我们还提供了一些快速创建模拟对象的技术。
www.ibm.com
7.
Use other tools, or use pre-packaged mock objects.
使用其他工具或者那些预先打包好的模拟对象。
www.ibm.com
8.
Two gotchas on mock objects before we proceed.
在我们继续之前,关于mock对象有两点需要知道。
www.infoq.com
9.
This is a classic example of the limitations of stubs and why mock objects serve a purpose.
这是一个经典例子,说明了stub的局限性,以及为什么使用mock对象。
www.infoq.com
10.
Unlike mock objects, however, SDAOs needn't be instrumented to include test assertions.
但是,与模仿对象不同的是,不需要对SDAO提供检测以包含测试断言。
www.ibm.com
1.
Let's look at stubs and mock objects with our running example, a slot machine.
让我们通过老虎机这一例子,看一看stubs和mock对象。
www.infoq.com
2.
We will create mock objects for these two services later in this article.
在本文稍后的部分中我们将创建这两个服务的模拟对象。
www.ibm.com
3.
Supports checking the order of method calls, for one or more Mock Objects.
对一个或多个模拟对象,支持方法调用顺序检查。
wenku.baidu.com
4.
Let's look at the first two objections before we delve into mock objects.
在深入探讨模拟对象之前,让我们先来看一下以下两点异议。
www.ibm.com
5.
Whenever possible, code must be tested in isolation (using, for example, techniques like mock objects).
只要有可能,代码的测试必须隔离进行(例如,使用像模拟对象这样的技术)。
www.ibm.com
6.
A good chapter on Mock Objects.
书中有一章对模仿对象进行了精彩论述。
spaces.msn.com
7.
Frameworks such as jMock, RMock, and even EasyMock help eliminate the need for a physical and separately existing set of mock objects.
使用jMock、RMock甚至EasyMock等框架有助于消除对物理的独立存在的模拟对象集的需求。
www.ibm.com
8.
What are Mock Objects Good For?
冒名对象擅长做什么?
wiki.perlchina.org
9.
We can now wire the BPEL process to the two mock objects we created and run the tests.
现在我们可以将BPEL流程连接到我们创建的两个模拟对象,然后运行测试。
www.ibm.com
10.
But there are some easy ways to create mock objects, or equivalent capabilities, with existing tools.
但是利用现有的工具可以有一些创建模拟对象或是相当能力的简单方法。
www.ibm.com
1.
Specifically, I want to offer some tips on how easy it can be to write unit tests with mock objects.
特别地,我想提供一些技巧来说明编写带有模拟对象的单元测试是多么容易。
www.ibm.com
2.
Mock objects are very popular and common approach to a unit testing. According to Wikipedia
对象模仿是一种非常流行和通用的单元测试方式。
www.infoq.com
3.
The example code for this kata illustrates as many points as possible about which mock objects are good at testing. Here is the code
这一续集的代码尽可能多的展示了冒名对象擅长的领域.代码如下
wiki.perlchina.org
4.
Improve your unit tests by replacing your collaborators with mock objects
用模仿对象替换合作者以改进单元测试
www-128.ibm.com
5.
The common coding style for testing with mock objects is to
使用模仿对象进行测试的常用编码样式是
www-128.ibm.com
6.
Invoke domain code with mock objects as parameters
将模仿对象作为参数来调用域代码
www.ibm.com
7.
Mock objects and mock object controllers
模拟对象和模拟对象控制器
www.ibm.com
8.
Test flexibly with AspectJ and mock objects
AspectJ和模仿对象的测试灵活性
www-128.ibm.com
9.
Verify consistency in the mock objects
验证模仿对象中的一致性
www-128.ibm.com
10.
Set state and expectations in the mock objects
设置模仿对象中的状态和期望值
www-128.ibm.com
1.
Create instances of mock objects
创建模仿对象的实例
www-128.ibm.com
2.
Don't write business logic in mock objects
中牵扯到业务逻辑
blog.csdn.net
3.
Unit testing with mock objects
使用模仿对象进行单元测试
www-128.ibm.com
随便看

 

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

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
更新时间:2025/2/6 3:23:56