The information in this file becomes the expected state of the object during subsequent builds.
此文件中的信息成为随后的构造过程中对象的期望状态。
Now you can pass in an object directly that is compatible with the expected database connection object, and it will use that object instead of creating a new one.
现在您可以直接传入一个对象,它与预期数据库连接对象相兼容,然后直接使用这个对象,而非创建一个新对象。
One must therefore take into account both the expected return type and the data model when deciding how to cast the object that this method returns.
因此在决定如何对该方法的返回值进行强制类型转换时,必须同时考虑预期的返回类型和所用的数据模型。
The first argument is to set a verification point name that is unique in the project, the second argument is to set an expected object, and the third argument is to set an actual object.
第一个参数是设置项目中独一无二的验证点名,第二个参数是设置预期的对象,而第三个参数是设置一个实际对象。
In the following example, you use the verification point object as the expected object, which was created by capturing the GUI table as a verification point in the previous example.
在接下来的例子中,您可以使用验证点对象作为预期对象,它是通过获取GUI表格作为上例中的验证点得以创建的。它将会创建一个预期的对象。
This "optimization" often does not deliver the expected savings; object allocation is cheaper than many give it credit for.
该“优化”通常不带来预期的好处;对象分配比很多人期望的更便宜。
The EXTRACT function is a very efficient way to select a group of values, but if the expected result set is just a single object then you are better off using the CHOOSE function previously discussed.
EXTRACT函数是选择一组值的非常高效的方法,但是如果预期的结果集只是单一对象,那么最好使用前面介绍的choose函数。
Each assertion creates a constraint object under the hood which evaluates the expected value against the actual value.
每个断言其实都在背后创建了一个约束对象,用来比较期待值和实际值。
It is generally up to the code calling the rule to make sure that the object exists on the session at the expected key.
通常,调用规则的代码需要确保会话中存在对应于预期键的对象。
To access the Content store object that is stored in the array as the class expected to be returned, the object must be cast to its actual class.
要访问以类的形式存储在数组中的内容库对象,对象必须转换为它自己的类。
As expected, the object read in the config.txt file, then spit out the correct value for the TemplateDirectory item.
一切都在预料之中,该对象读取config . txt文件,然后为TemplateDirectory配置项获得正确的值。
Stefano Andreon, of the National Institute for Astrophysics in Milan, added: "This object is close to the distance limit expected for a galaxy cluster."
米兰国家天体物理研究所(National Institutefor Astrophysics)的斯特凡诺补充道:“这个客体接近了我们预期的星系团距离界限。”
Autowiring by type can obviously result in ambiguities when the Spring context contains more than one object of the expected type.
通过类型进行的自动装配明显地在Springcontext包含多于一个期望类型的对象的时候造成歧义。
Figure 1 shows the major test specification parts for a service that takes a simple PostCode string and returns a data object, the expected result being specified in a simple payload file.
图1显示了服务的主要测试规范部分,该服务采用一个简单的Post Code字符串,并返回一个数据对象,预期的结果在一个简单的有效负载文件中指定。
From the response object you can assert whether the portlet has been displayed as expected in the View mode.
通过响应对象,您可以断定portlet是否如预期以View模式显示。
After a test executes, you can use the Verification Point Comparator to analyze differences, or to update the baseline (expected object state) if the behavior of the object changes.
在执行测试之后,您可以利用VerificationPoint Comparator来分析区别,或者如果对象性能改变了,就更新基线(期望的对象状态)。
The React function handles the implementation details of converting the object queued up via Put to the form expected by Take.
React函数处理的实现细节是通过Put将队列中的对象转换为Take所期望的形式。
Your test case will populate an input Address object, invoke the map to produce an output AddressCSV object, and then compare the resulting AddressCSV object with the expected results.
您的测试用例将填充一个输入的Address对象,调用该映射以产生输出addresscsv对象,然后将最终获得的AddressCSV对象与预期的结果做比较。
The predicate_result object has an implicit constructor that accepts a Boolean value, which explains why the code works fine even though the expected and actual return types of validate_list differ.
predicate_result对象有一个隐式的构造函数,它接受一个boolean值,因此即使validate_list的期望类型和实际返回类型不同,代码仍然会正常运行。
With the list object associated to the master query without the summary filter, the report now executes using Dynamic query Mode and returns the expected results.
由于列表对象关联到没有摘要过滤器的主查询,报告现在以DynamicQueryMode执行,并返回预期结果。
It is the job of the resource collection to convert the query object to a query string in a format expected by the feed servlet, such as SQL or XPath.
资源集合要负责将查询对象转换为采用FeedServlet所预期的格式的查询字符串,如SQL或Xpath。
With the right list object and the page set grouping associated to a query without the summary filter, the report now executes using Dynamic query Mode and returns the expected results.
由于右侧列表对象和页面集分组关联到一个没有摘要过滤器的查询,报告现在以DynamicQueryMode执行,并返回预期结果。
One warning message will be produced, which is expected because the executeQuery method returns a raw list, which could hold any type of object.
这将生成一条警告信息,这是意料之中的,因为executeQuery方法返回一个原始列表,该列表可以包含任何对象类型。
Using the synchronized keyword with myMethod() you will, as expected, see a blocked count greater than zero from the ThreadInfo object associated with the thread.
在myMethod() 上使用synchronized关键字时,会看到与线程关联的ThreadInfo对象有一个大于0 的阻塞计数。
The expected target object varies with the admin command invoked.
预期的目标对象因调用的管理命令而异。
An extra capability of the mock object is a Controller Interface that enables the test framework to query whether it was invoked with the expected data values.
模拟对象的一个额外功能是控制器接口,它使测试框架能够查询是否使用预期数据值调用了模拟对象。
The basic rule is: if you allow someone to click on a link, you have to add an object to the browser history so the Back button will work as expected.
基本规则是:如果允许别人单击链接,就必须在浏览器历史中增加一个对象,以便后退按钮能够正常工作。
Verification points for SAP are enhanced to capture any property of a SAP GUI object and optionally check it against an expected value.
SAP的确认点被增强为可以捕获任何 SAPGUI 的属性,并可以随意的针对一个预期数值做检查。
The concept behind duck typing, also known as late binding, is pretty simple; if an object responds to all the methods a function is expected to call, that object can be passed to the function.
Ducktyping背后的概念非常简单,就是所谓的迟绑定;如果对象具有某个函数希望调用的所有方法,就可以将这个对象传递给该函数。
The concept behind duck typing, also known as late binding, is pretty simple; if an object responds to all the methods a function is expected to call, that object can be passed to the function.
Ducktyping背后的概念非常简单,就是所谓的迟绑定;如果对象具有某个函数希望调用的所有方法,就可以将这个对象传递给该函数。
应用推荐