运行单元测试确保测试用例能继续找到并返回正确的对象。
Running unit tests assures that test case code will continue to find and return the correct objects.
补救方法是更改代码,以强制转换为正确的对象。
The remedy is to change the code to cast correctly to the right object.
简单地说,转换是确保数据拥有正确的对象或者类型的过程。
Simply put, it's the process of ensuring data is of the right object or type. Here are two typical conversions.
为了在更新脚本中生成正确的对象顺序,架构比较会检查对象依赖项。
To generate the correct order of objects in an update script, Schema Compare examines object dependencies.
Hibernate在运行时无缝地隐藏这些细节,它会正确地解析结果集并返回正确的对象列表。
Hibernate seamlessly hides all of this at run time, properly parsing the result set and returning the proper list of objects.
使用PHPv4时,必须测试本例中的参数类型,以绝对确保编码器传递类型正确的对象。
Using PHP V4, you would have to test the argument types in this example to be absolutely sure that the coder passes around the right kind of objects.
这有可能会导致对回调是否运行在正确的对象上下文内的检测滞后(例如,对象实例变量的值不正确)。
This can cause late detection that the callback was not running in the correct object context (for example, incorrect object instance variable values).
正确的对象编码方法(包括在现在的ASCII类名中)是一个实现细节并且在库的以后版本中可以改变。
The exact object encoding method (including the presence of the ASCII class name) is an implementation detail and could change in future versions of the library.
如果XFDL文件没能在MozillaFirefox中打开,请确保在嵌入这个XFDL时,定义了正确的对象。
If the XFDL file doesn't open in Mozilla Firefox, then make sure that when you embed the XFDL, you define the right object.
使用把XML映射到类定义的方法,可能存在两种情况:要么得到一个正确的对象,要么该对象会丢失某些字段。
Alternatively with the XML mapped to a class's design, there would either be a correct object, or it would be missing some fields.
错误对象:使用地址,通过与对象的构建函数调用的地址进行比对,可以检查出是不是在正确的对象上调用方法。
Incorrect objects: Using the address, it is possible to check that methods are being invoked on the desired object by matching to the address on the constructor call for that object.
比较棘手的情况是应用程序有正确的对象,但尝试使用未授权的提升权限,比如 +altuser或 +passid。
The more difficult case is when the application has the correct object but it attempts to use an elevated right that has not been granted, such as +altuser or +passid.
因为您的TestObject不是在对象地图(Object map)中定义的,在记录中,记录器不能挑出正确的对象名称。
Because your TestObjects are not defined in the object Map, the recorder will not pick up the correct object name while recording.
对应的接口可能没有正确的连接器对象。
The corresponding interface might not have the right connector object.
示例包括在逻辑消息树中创建具有正确数据类型的对象,以及根据模型验证xML。
Examples are creating objects in the logical message tree with the correct data type, and validating XML against the model.
在处理这些业务对象时,确保选择正确的名称空间。
When working with these business objects, make sure you pick the right one.
文本消息必须遵循特定的格式,以便转换程序类能够确定要使用的正确业务对象。
The text message must follow a specific format so that the converter class can determine the right business object to use.
相反,使用对象外部的内容可以提供正确的实现。
Instead, use something external to your object to give you the correct implementation.
如果对象池大小没有正确调优,许多未使用的对象实例最终会被闲置,耗尽内存而不产生任何价值。
If the pool size is not tuned correctly, many unused object instances can end up hanging around, using up memory without contributing value.
只需给予对象正确的名称,就可以构建相当复杂的索引。
Fairly complex indexes can be built up by simply giving objects the right names.
对于向集群公开的对象,必须跟踪某些状态信息才能让集群正确的路由信息。
Of the objects that are advertised to the cluster, certain state information must be tracked so that the cluster can properly route messages.
getAggregateResultUDF(设置为 斜体)需要对二进制串解码,然后访问正确的聚集对象。
The getAggregateResult UDF (set in italics) needs to decode the binary string and access the correct aggregation object.
看到了吗,即使我给你两个截然不同的Key对象,也不能返回正确的value对象,返回的是value2,而不是value1。
See, even though I'm giving you two distinct Key objects, you're not returning the correct value object. It's returning value2, not value1.
引用以前创建的标题、风格、脚注ComponentLibrary对象和正确的模板组件属性,在这些属性中应该可以添加内容。
Reference the previously created header, style, footer component Library objects and the right template component attributes where content should be added.
您只要为每个对象编码正确的验证规则,而不是让每个对象维护自己的验证。
Rather than having each object maintain its own validation, you merely encode the correct validation rule for each object.
最后,您可以看到测试步骤正在检查模拟对象是否收到正确的数据。
Finally, you can see the test step checking that the mock object did receive the correct data.
这些映射只是将数据库中的正确位置与您请求的对象的字段连接起来。
These maps simply join the correct place in the database to the field of the object that you require.
订阅是由MQTT对象处理的,它将正确的信息传递到其代理中。
Subscriptions are handled by the MQTT object which passes the appropriate information to its broker.
我经常会读到或听到有人说一些“这个和那个不是正确的面向对象”,或“…面向函数”,或诸如此类的言论。
I frequently read or hear people say something along the lines of "this or that is not properly object oriented", or "... function oriented ", or something else similar to that.
我经常会读到或听到有人说一些“这个和那个不是正确的面向对象”,或“…面向函数”,或诸如此类的言论。
I frequently read or hear people say something along the lines of "this or that is not properly object oriented", or "... function oriented ", or something else similar to that.
应用推荐