Apache Click also includes an API for mock testing, which allows better unit testing, continuous integration builds, and test-driven development (TDD).
ApacheClick还包含一个用于mock测试的API,可以用它改进单元测试、连续集成构建和测试驱动开发(TDD)。
You can combine mock object testing with a variety of techniques and technologies.
您可以将模仿对象测试与各种技巧和技术组合起来。
Several books and papers show how to use mock objects in unit testing. These describe the capabilities that mock objects should have and how to use them.
一些书籍和论文讲述了如何在单元测试中使用模拟对象,描述的是模拟对象应该具备的能力以及如何使用他们。
In particular, my design employed mock objects to make testing easier.
尤其是,我的设计利用了模仿对象来简化测试。
This allows for a reliable testing strategy that USES dynamic mock objects.
这需要考虑到使用动态模仿对象的可靠测试策略。
I hope that you see the benefits of using mock objects in unit testing. I also hope this brief tutorial helps you see how to create mock objects easily.
我希望你们能够发现在单元测试中使用模拟对象的益处,也希望这篇简短的指南能够帮您了解如何简单地创建模拟对象。
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.
我们将通过创建合适的模拟对象来启用此类测试。
There are many unit testing frameworks available today that use mock containers for testing.
目前有许多单元测试框架使用模拟容器来执行测试。
For example, for testing purposes you can replace a heavy database implementation with a lighter-weight mock implementation.
举例来说,出于测试的目的,你可以用模拟的轻量级数据库实现来替代实际的大型数据库。
We have seen how simple mock objects can enable repeatable unit testing of a BPEL process, and described a simple framework that greatly eases the construction of mock objects.
我们了解了简单的模拟对象如何实现BPEL流程的可重复单元测试,并描述了一个简单的框架,该框架极大地简化了模拟对象的构造。
As you'll see in the Testing section, a mock-objects approach perfectly matches the goal.
正如您在测试一节看到的,模仿对象方法完全满足该目标。
Mock objects are very popular and common approach to a unit testing. According to Wikipedia
对象模仿是一种非常流行和通用的单元测试方式。
Mock objects were championed by Tim Mackinnon, Steve Freeman, and Philip Craig 1 and have become a staple in the unit testing toolbox.
模拟对象被TimMackinnon、Steve Freeman和PhilipCraig1所支持并成为单元测试工具箱的主要组成部分。
The common coding style for testing with mock objects is to.
使用模仿对象进行测试的常用编码样式是。
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将模拟对象描述为测试对象,该对象可以使用常量进行响应,从而实现开销大或复杂的资源的模仿版本。
A new tutorial by Upul Godage describes how to use Apache Synapse to mock web services for development and testing.
UpulGodage写的一个新的教程描述了如何使用ApacheSynapse来为开发和测试模仿webservices。
For example, we can mock out the email delivery method in our testing environment.
例如,我们可以在测试环境中用mock模拟电子邮件发送方法。
This flexibility also makes unit testing your code much, much easier, since you can swap out real components for mock objects during your tests.
这种灵活性使得你能够更加容易地进行单元测试,因为在测试期间,你可以将真实组件替换为Mock对象。
If you have no unit testing, you also don't have mock objects or other testing techniques common in code.
如果你没有单元测试,你的代码里也不会有公共的Mock对象或其它测试技术。
Fixtures allow you to specify data for testing, and finally, mock objects let you concentrate on testing the core application without worrying about accessing network connections or external systems.
可以使用fixture指定测试用的数据;mock对象让我们能够集中精力测试应用程序的核心功能,而不必为网络连接或外部系统操心。
Languages with advanced metaprogramming capabilities, such as Ruby and Lisp, allow some testing tricks that other languages don't, such as easier access to mock objects.
具有高级元编程(metaprogramming)能力的语言,例如Rubyand Lisp,允许使用其他语言不支持的一些测试技巧,例如更容易访问mock对象。
However, if you can't reliably and automatically test with the real class for any reason, then testing with a mock is infinitely superior to not testing at all.
但是,如果由于某种原因无法用真实的类可靠且自动地进行测试,那么用mock进行测试肯定比根本不测试强。
Any time you have an interface that needs to return certain results for purposes of testing, you can just create a quick mock.
如果有一个需要返回特定值的接口需要测试,就可以快速地创建一个mock。
Using mock containers reduces your testing time without compromising the portal server functions.
使用模拟容器可降低测试时间,而不减弱门户服务器功能。
That's why we recommend testing mock up designs, existing websites and even competitor websites before the development phase of a project.
这就是为什么我们推荐在网站进入开发进程前测试原型设计、已有网站,甚至是竞争对手的网站。
In an undated picture, a mock-up of the A-12 spy plane sits perched upside down on a testing pylon at Area 51-part of radar tests to reveal revealed how visible, or invisible, the design was to radar.
在一张未标明日期的图片中,一架实物模型的A - 12间谍飞机倒挂着停放在51区的一个测试塔上,这是为了测试该飞机的外观在雷达上可视或不可视的程度。
Clients often ask me to explain to their boards why we're running user tests. And why we spend our time user testing mock-ups, rather than the finished website.
客户经常让我给他们的管理层解释为什么我们要进行用户测试,为什么我们要花更多时间测试网站原型而不是已实现的网站。
Clients often ask me to explain to their boards why we're running user tests. And why we spend our time user testing mock-ups, rather than the finished website.
客户经常让我给他们的管理层解释为什么我们要进行用户测试,为什么我们要花更多时间测试网站原型而不是已实现的网站。
应用推荐