A mock service can then be used if the original service for any reason is unavailable.
如果原始服务出于任意原因而不可用,就可使用Mock服务。
Therefore, when you build the mock service you'll mock the Ajax lib calling your GUI back asynchronously.
因此,在构建模拟服务时,要模拟ajax库异步地回调GUI。
To understand how the mock service is written, you must understand how the runtime application will run.
要想了解如何编写模拟服务,必须了解运行时应用程序的运行方式。
Wire the test module to the mock service module by expanding the MT_TestArchiveRetrievalApp module, and open its assembly diagram.
通过展开MT _ TestArchiveRetrievalApp模块并打开其组装图,将测试模块连接到模拟服务模块。
If there are multiple provider teams for the same service, they must coordinate to produce one mock service that they all agree upon.
如果相同的服务有多个提供程序团队,则他们必须进行协调,以产生一个他们都认可的模拟服务。
Now that we have added the mock Service Controller interface to the MockCustomer component, you will see an error because we have no implementation of the required operations (Figure 25).
现在我们已经将模拟ServiceController接口添加到MockCustomer组件,这时您将看到一条错误,因为我们还没有实现所需的操作(图25)。
It is very simple and contains exactly one service and one view model with a "mock database".
它非常简单并且只包含一个服务和一个带模拟数据库的视图模型。
Changing the tests means that the service mocks now don't pass the tests, so they must be changed as well to accurately mock the way the service now works.
更改测试意味着服务模拟现在将不能通过测试,因此也必须对其进行更改,以实际模拟服务现在的工作方式。
It should pass the same service tests you've already developed, which shows that the mock really works the way the real service does.
它应该通过您已经开发的服务测试,这表明模拟真的和实际服务的工作方式一样。
The third step in this SOA development process is to develop service mocks -- mock objects that pass the service tests.
此SOA开发流程的第三步是开发服务模拟——通过服务测试的模拟对象。
The idea is that in a boot-like place (the main method?) it is populated with appropriate instances for the service names, and that unit tests can program it with a mix of real and mock instances.
其思想是在程序的入口(main方法?) ,把与服务名对应的实例填充进服务定位器,单元测试的时候可以混合使用真实或模拟的实例来填充。
If the service is something more complex, like a stateless session bean or a SOAP Web service, this POJO code still serves as the basis for the more complex mock implementation.
如果服务更复杂(如无状态会话Bean或SOAPWeb服务),此POJO代码仍然可以作为更复杂的模拟实现的基础。
Our mock object will then implement both the service interface of the component it is replacing, plus the controller interface. An outline of a mock object implementation would look like
然后,我们的模拟对象将同时实现它替换的组件的服务接口和控制器接口。
"Verbal fillers are the No. 1 problem," says Randy Bitting, cofounder of InterviewStream, a Web-based service that gives job seekers the chance to tape and watch themselves in mock interviews.
InterviewStream网站专门为求职者提供机会让他们有机会录下自己在模拟面试中的表现,从而仔细观察,网站创始人之一RandyBitting说:“口头的记录是最大的问题。”
The service mock has the same API as the real service; it implements the interfaces developed for the service tests.
服务具有与实际服务相同的API;它会实现针对服务测试而开发的接口。
After my mock appointment, I called my family doctor to see what he would think if one of his patients started using a virtual service from time to time.
在这次模拟预约之后,我给家庭医生打了个电话,看看他对病人偶尔使用这种虚拟服务有什么看法。
After my mock appointment, I called my family doctor to see what he would think if one of his patients started using a virtual service from time to time.
在这次模拟预约之后,我给家庭医生打了个电话,看看他对病人偶尔使用这种虚拟服务有什么看法。
应用推荐