• 模仿对象作为参数来调用代码

    Invoke domain code with mock objects as parameters.

    youdao

  • 模仿对象用来单独测试代码逻辑一部分

    Mock objects are used to test a portion of your code logic in isolation from the rest of the code.

    youdao

  • 需要考虑使用动态模仿对象可靠测试策略

    This allows for a reliable testing strategy that USES dynamic mock objects.

    youdao

  • 可以模仿对象测试各种技巧技术组合起来。

    You can combine mock object testing with a variety of techniques and technologies.

    youdao

  • 模仿对象不仅仅只是还未存在的组件存根

    But mocks are more than stubs for nonexistent components.

    youdao

  • 模仿对象遵循模仿对象模式合作者子类(实现)。

    Mock object: a subclass (or implementation) of the collaborator that follows the mock object pattern.

    youdao

  • 特殊化对象中,覆盖创建方法返回测试提供的模仿对象

    In the specialization object, override the creation method to return a mock object that accommodates your test.

    youdao

  • 这个解决方案中,执行查找代码返回模仿对象的代码自动替换。

    In this solution, the code that performs the lookup is replaced automatically with code that returns a mock object instead.

    youdao

  • 数据库非常敏感,所以层不能应用模仿对象或POJT技术

    The layer is well aware of the database, so neither mock objects nor POJT techniques should be applied.

    youdao

  • Wicket通过使用内置模仿对象框架提供对容器外单元测试支持

    Wicket supports out-of-container unit testing through the use of a built-in mock object framework.

    youdao

  • 可选的:创建单元测试确保原始目标对象工厂方法返回正确模仿对象

    Optional: create a unit test to assure that the original target object's factory method still returns the correct, non-mock object.

    youdao

  • 特殊化对象覆盖创建方法返回模仿对象而不是合作者目标子类

    Specialization object: a subclass of the target that overrides the creation method to return a mock instead of a collaborator.

    youdao

  • 虽然这种模式对于许多情况非常有效,但模仿对象有时不能传递正在测试对象

    While this pattern is very effective for many cases, sometimes the mock object cannot be passed into the object being tested.

    youdao

  • 模仿对象符合实际对象接口只要有足够代码欺骗测试对象跟踪行为

    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.

    youdao

  • 最近模仿对象得到大力推广认为它们滥用了,它们”以至于不切实际

    Mock objects have gotten a lot of publicity lately, but I think they're overused and often too heavy to be practical.

    youdao

  • 随着更加熟练地使用模仿对象对于多少验证职责代理模仿对象,您将会深有体会。

    As you grow more comfortable using mock objects, you will develop a feel for how much validation responsibility to delegate to the mock.

    youdao

  • 可以评估代码如何模仿对象交互(譬如验证调用了某个方法多少以及检查状态)。

    You can evaluate how your code is interacting with mocks (such as verifying how many times a method was called, check state, and so on).

    youdao

  • 模仿对象一个接口希望实际组件具备这个接口,然后使用模仿对象直到实际组件成形

    You give the mock objects an interface you want the real components to have, then you use the mocks until the real components take shape.

    youdao

  • 合并后公司成为全美最大国内航空公司,可能也会成为美国其他航空模仿对象

    They will create America's biggest domestic carrier and could prove to be the spark that lights the flame for others of America's six big airlines.

    youdao

  • 根据模仿对象创造者所说应该validate()方法内部执行自己所有验证

    Note: According to its inventors, a mock object is supposed to perform all of its own validation inside its validate() method.

    youdao

  • 考虑DAO方式中,模仿对象基本的,以致我无法想象缺少其中个的情况下如何实现一个。

    Mock objects are so fundamental to the way that I think about DAOs that I couldn't imagine implementing one without the other.

    youdao

  • 商务印书馆近代中国富盛名出版企业古籍出版同样能够成为其他出版企业的竞相模仿对象

    Commercial Press is the most famous modern Chinese publishing enterprises, its ancient books to be published in other publishing enterprises of the competing models.

    youdao

  • 模仿谈话对象动作一种常见人类行为归类镜像”,而心理学家对其的认知研究已有多年

    Emulating your conversation partner's actions is a common human behavior classified as "mirroring" and has been known and studied by psychologists for years.

    youdao

  • 美国应该成为一个可看可摸观察对象(而不是不加思考的模仿),中国则应成为时时关心回忆话题

    America should become an object of explicit observation (not thoughtless imitation) while China remains a topic of concern and memory.

    youdao

  • 对于科学家IrenePepperberg博士来说Alex只30岁的实验对象削弱了“鹦鹉只是简单模仿生物”这观念。

    A 30-year research subject for scientist Irene Pepperberg, PhD, Alex whittled away at the belief that parrots were simple mimics.

    youdao

  • KentBeck模拟对象描述测试对象,该对象可以使用常量进行响应,从而实现开销大复杂资源模仿版本

    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.

    youdao

  • 模拟对象模仿出于指导代码执行惟一目的而编写行为以便测试符合代码执行要求。

    Mock objects mimic the behavior of classes written with the sole purpose of guiding code execution so that it falls within those areas under test.

    youdao

  • 但是仅仅模仿同伴并非就是成功秘诀,”肯德尔,“能够在时间学习对象上具有选择性动物往往更胜一筹。”

    "But it is not always a recipe for success to simply copy someone," said Kendal. "Animals are often better off being selective about when and who they copy."

    youdao

  • 担忧,因为一类设计虽然适用某些场合,但更多场合中并不恰当已经成为唯一能获奖的网页设计。 正因如此,它也成为年轻设计师争相模仿对象

    I worry because this type of design, which is appropriate in certain settings and inappropriate in many others, is the only type of web design achieving recognition.

    youdao

  • 担忧,因为一类设计虽然适用某些场合,但更多场合中并不恰当已经成为唯一能获奖的网页设计。 正因如此,它也成为年轻设计师争相模仿对象

    I worry because this type of design, which is appropriate in certain settings and inappropriate in many others, is the only type of web design achieving recognition.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定