Do you recall that the purpose of a setup method is to initialize the object under test.
您是否还记得一个set方法的主要目的是对测试下的目标进行初始化。
The result is that your final object executes the minimum amount of code to properly initialize the object.
结果就是,最终的对象执行最少数量的代码来恰当的初始化对象。
If a class does not have a constructor, a default constructor is automatically generated and default values are used to initialize the object fields.
如果类别没有任何的建构函式,则会自动产生预设建构函式,而预设值会用于初始化栏位。
To create a new object (in this case, the string that will be returned), first alloc the object and then initialize it.
要创建一个新对象(这里是将返回的字符串),首先分配对象,然后初始化对象。
The code to initialize and destroy the threads will be under #ifdef INTR_SIMULATION, so that under normal compilation this code will not affect the release version of the driver object.
用来对这些线程进行初始化和销毁的代码都在 #ifdef INTR_SIMULATION 之下,这样在普通模式下编译的代码不会影响驱动程序对象的发行版本。
As indicated by the "mandatory initialization" line in Listing 5, you have to initialize the global Google object before using it.
正如清单5中的“mandatoryinitialization”代码行所示,在使用前,必须初始化这个全局的google对象。
Jeff found that the amount of time required to initialize a regular object in the kernel exceeded the amount of time required to allocate and deallocate it.
Jeff发现对内核中普通对象进行初始化所需的时间超过了对其进行分配和释放所需的时间。
If the portlet window state is currently in maximized state, initialize the various change URLs (back, configure, edit, and minimize) within the PortletInfo object.
如果当前Portlet窗口状态是最大化状态,请初始化portletinfo对象中的各种更改url(后退、配置、编辑和最小化)。
The designated initializer syntax allows you to initialize members by name, without regard to the order in which they appear in an object.
指定的初始化程序语法允许您通过名字初始化成员,不用理会它们在对象中出现的顺序。
Add methods to the mock object that allow you to initialize it properly for your tests.
在模拟对象里添加方法,使得您的测试正确地初始化。
The syntax for a compound literal allows a brace-enclosed series of values to be used to initialize an automatic object of the appropriate type.
复合文字的语法允许用大括号括起来的一系列值来初始化适当类型的自动对象。
Create and initialize the PortletInfo object associated with the current portlet being rendered on a page.
创建和初始化与当前在页面中呈现的Portlet相关联的PortletInfo对象。
The engine will automatically construct a new instance of the object then call the init method on that object, so that the object has a chance to initialize itself from the context object.
这个引擎将自动地为该对象构造的一个新的实例,然后调用其init方法,以便该对象能够有机会根据上下文对象对自己进行初始化。
If the AddressStore object isn't initialized, then you initialize it.
如果AddressStore对象还没有初始化,那么要初始化该对象。
Before the String constructor runs, the constructor for Object will initialize all fields, including the final length and offset fields, with their default values.
在String构造函数运行之前,Object的构造函数将用它们默认的值初始化所有字段,包括决定性的长度和偏移字段。
Because the JNDI lookup can be expensive, it is good practice to store the provider object as a member variable of the portlet, and to initialize it in the init method.
因为JNDI查找开销非常大,所以最好的做法是将提供程序对象存储为Portlet的成员变量,并在init方法中对其初始化。
Calling super constructors works just as with plain Ruby code, which means that the frame title can be set by calling super (" JRuby Object Browser ") on the first line of the initialize-method.
调用父类的构造方法就和普通的Ruby代码一样,这意味着我们可以在initialize方法的第一行通过调用super (“JRubyObjectBrowser ”)来设定窗口的标题。
Note: to initialize the Logical Disk object, you need to run the Diskperf tool and restart the system.
注意:为了初始化logicalDisk对象,需要运行Diskperf工具并重启系统。
The syntax for a compound literal allows a brace -enclosed series of values to be used to initialize an automatic object of the appropriate type.
复合文字的语法允许用大括号括起来的一系列值来初始化适当类型的自动对象。
Failed to initialize object picker for the target domain.
为目标域初始化对象选取器失败。
In order to use declarative security calls, you must initialize the state data of the permission object so that it represents the particular form of permission you need.
为了使用宣告式安全性呼叫,您必须初始化使用权限物件的状态资料,使它可以代表您所需要的特定形式使用权限。
The position of the face can initialize the parameters of face tracker to realize fast face tracking and video object coding.
用检测到的人脸位置来初始化跟踪算法实现快速人脸跟踪;
You can use object initializers to initialize type objects in a declarative manner without explicitly invoking a constructor for the type.
以声明方式初始化类型的对象,而无需显式调用该类型的构造函数,您可以使用对象初始值设定项。
A constructor is a function you call to instantiate and initialize a particular type of object. You invoke a constructor with the new keyword. Here are a few examples of using constructors.
一个构造器是一个函数,你可以调用它实例化和初始化一个特殊的对象类型。
Anonymous types allow you to define a class, then declare and initialize an object of that class, without giving the class a name.
匿名类型允许您定义一个类,然后在不给出类名称的情况下声明并初始化该类的对象。
The following example creates a new data object and USES this constructor to initialize the data object with a string and a specified data format.
下列范例会建立新的资料物件,然后使用这个建构函式初始化具有字串和指定之资料格式的资料物件。
While that works correctly, it isn't always efficient, as that method of object detection can initialize resources in the browser.
当然这可以正常工作,但它并不一定有很好的效率。因为这个对象探测方法会在浏览器中初始化资源。
While that works correctly, it isn't always efficient, as that method of object detection can initialize resources in the browser.
当然这可以正常工作,但它并不一定有很好的效率。因为这个对象探测方法会在浏览器中初始化资源。
应用推荐