As we mentioned frequently, you can emulate components that you don't want to be part of a test, which means that the integration test client will provide return values for a service call.
正如我们经常提到的,您可以模拟不需要测试的组件,这意味着集成测试客户端将为服务调用提供返回值。
“And if you want to pop off for a quick one yourself later on,” said Ford, “we can always cover up for you in return.
“如果一会你也想去小玩一会的话”福特说“作为报答我们一定帮你打掩护”。
Like previous examples, we want to return a valid XML document, so we will wrap the result of the XQuery with the root XML element.
与前面的示例相似,我们要返回一个有效的XML文档,所以将XQuery的结果封装在xml根元素中。
Now, the one that we're most interested in ANS is the one where, in fact, it gets out ANS, so you see down here in the code, there's a spot where it's going to return the value of ANS, which is what we want, right? That's the thing that holds the value that we intended to have.
现在我们最感兴趣的是这个,事实上它返回的是,所以你看这段代码,在这里返回ANS值,也就是我们想要的,对吧?,它就承载了我们想得到的值。
With the government expected return, we want to make that expected return as a fourth asset-- rf we could call it r4 but I'll call it rf-- it's a special asset.
根据政府的期望收益率,我们将其作为第四种资产-,可以称之为r4,我们写成-,这是个特殊的资产。
应用推荐