• 必须模仿对象替换这个合作者

    This collaborator must be replaced with a mock object.

    youdao

  • 设置模仿对象中的状态期望值

    Set state and expectations in the mock objects

    youdao

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

    Invoke domain code with mock objects as parameters.

    youdao

  • 模仿对象提供了解决一困难方法

    Mock objects provide a way out of this dilemma.

    youdao

  • 验证模仿对象中的一致性

    Verify consistency in the mock objects.

    youdao

  • 使用模仿对象进行测试常用编码样式

    The common coding style for testing with mock objects is to.

    youdao

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

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

    youdao

  • 尤其是设计利用了模仿对象简化测试

    In particular, my design employed mock objects to make testing easier.

    youdao

  • 自信模仿对象不一定现实中的

    Your confidence models don't even have to be real people.

    youdao

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

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

    youdao

  • 我们使用实例变量存储模仿对象引用

    We also used an instance variable to store a reference to the mock object.

    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

  • 测试代码中,创建模仿对象且实现与合作者相同接口

    In your test code, create a mock object implementing the same interface as the collaborator.

    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

  • 测试代码希望产生一种类型对象模仿对象)。

    The test code would like it to produce a different type (a mock).

    youdao

  • 正如测试一节看到的,模仿对象方法完全满足目标

    As you'll see in the Testing section, a mock-objects approach perfectly matches the goal.

    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

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

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

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