We will enable such testing by creating a suitable mock object.
我们将通过创建合适的模拟对象来启用此类测试。
We will be using these later in our second mock object implementation.
稍后我们将在第二个模拟对象实现中使用它们。
The setUp method instantiates the mock object and injects it into the aspect.
setUp方法实例化mock对象并将它注入到方面中。
A mock object based on a ClassB class is constructed and provided an expectation.
构建基于classb类的模拟对象并向其提供期望。
You can combine mock object testing with a variety of techniques and technologies.
您可以将模仿对象测试与各种技巧和技术组合起来。
Add methods to the mock object that allow you to initialize it properly for your tests.
在模拟对象里添加方法,使得您的测试正确地初始化。
A BPEL process makes several different calls to the same mock object in rapid succession.
BPEL流程连续快速地对同一模拟对象发出多个不同的调用。
It can be treated just like a mock object. For example, the size method can be stubbed out.
它可被看作一个mock对象。
Finally, you can see the test step checking that the mock object did receive the correct data.
最后,您可以看到测试步骤正在检查模拟对象是否收到正确的数据。
The Invoke statement labelled NotifyCustomer: this is our second mock object invocation point.
标记为NotifyCustomer的invoke语句:这是第二个模拟对象的调用点。
Examine the values entered in the binding TAB to see how they refer to your mock object module.
检查在Binding选项卡中输入的值,了解它们如何引用您的模拟对象模块。
The mock object classes we have can be reused and enhanced for future tests with minimal effort.
已有的模拟对象类可以再度使用,稍做修改就可以用于未来的测试。
When the mock object is destroyed, it checks that all expectations on it have been satisfied.
当mock对象销毁时,系统会检查其上的期望是否都满足了。
These are supplied to enable a quick demonstration of the mock object we are about to build next.
提供这些内容是为了能够快速演示我们接下来将要构建的模拟对象。
Wicket supports out-of-container unit testing through the use of a built-in mock object framework.
Wicket通过使用内置的模仿对象框架提供对容器外单元测试的支持。
A mock object enables you to test your component without having to depend on the external resource.
模拟对象允许您对组件进行测试,而不必依赖于外部资源。
A mock object is a replacement for a real object that we create for the express purpose of testing.
为了达到快速测试的目的,我们创建模拟对象来代替真实的对象。
Mock object: a subclass (or implementation) of the collaborator that follows the mock object pattern.
模仿对象:遵循模仿对象模式的合作者的子类(或实现)。
We accomplish this by extending the capabilities of the mock object, adding a second interface (Figure 6).
我们通过扩展模拟对象的功能完成了这一点,即添加了第二个接口(图6)。
Shale Test Framework, an Apache project, provides mock object implementations for Servlet and JSF components.
Shale测试框架作为一个Apache项目,提供了对Servlet和JSF组件的mock对象实现。
In the specialization object, override the creation method to return a mock object that accommodates your test.
在特殊化对象中,覆盖创建方法以返回为测试提供的模仿对象。
And the fourth and final change required is to bring the RMock mock object out of record state into ready state.
而第四项也是最后一项必需的更改是使RMock模拟对象脱离记录状态转入就绪状态。
Mocks are not stubs. A mock object, instead, is like a gauge that measures the way your application USES an interface.
mock则不同,mock对象更像一个测量工具,可以测量应用程序使用接口的方式。
Since the method under test is written to the interfaces, we can create a mock object for each interface for our tests.
既然测试里的方法写在接口中,我们可以为我们测试的每一个接口创建一个模拟对象。
The third change involves the construction of one or more expectations on the RMock mock object with the correct syntax.
第三项更改涉及用正确语法构造对RMock模拟对象的一个或多个期望。
The extra String parameter supplied to jMock CGLIB's mock() method is used as an identifier for the mock object created.
提供给jMockCGLIB 的mock()方法的附加String参数被用作创建的模拟对象的标识符。
We had to write approximately 50 lines of code that actually implemented the behavior we needed in our mock object classes.
我们大约需要编写50行代码来真正执行我们在模拟对象类中所需的行为。
In this solution, the code that performs the lookup is replaced automatically with code that returns a mock object instead.
在这个解决方案中,执行查找的代码被返回模仿对象的代码自动替换。
In this solution, the code that performs the lookup is replaced automatically with code that returns a mock object instead.
在这个解决方案中,执行查找的代码被返回模仿对象的代码自动替换。
应用推荐