I can pass it around to other classes in this unit test, and it will behave as if it were a real file.
我可以将它发送给这个单元测试中的其他类,并且它表现得像一个真正的文件。
In this case it is used to define the real file containing the record format definition used in the handler program.
在本例中,它用于定义包含Handlder程序中使用的记录格式定义的真实文件。
The real file name is put in a properties file so that plugin.xml can find the corresponding content file according to locale.
文件的真实名称放在了一个属性文件里,以便 plugin.xml根据位置找到相关的内容文件。
Allowing selection is somewhat possible. When the user selects any part of the real file upload, we select the entire value of the fake file upload.
允许选择有点可能,当用户选择部分真实上传控件的值时,我们选择整个伪造控件的值。
It will be gone when the program finishes if you do not take steps to save it (such as writing it to a real file, or using the shelve module or a database).
如果不保存它(如将它写入一个真正的文件,或者使用shelve模块或数据库),则程序结束时,它将消失。
The first layer of defense is that queries to the database always include the file type and mode bits from the real file on disk, not just the device and inode.
第一层防御是在数据库的查询中总是包含文件类型和来自磁盘上实际文件的模式位 (mode bits),而不只包含文件的设备和inode 号。
The kernel then mounts this initrd as part of the two-stage boot process to load the modules to make the real file systems available and get at the real root file system.
内核然后会将这个initrd文件作为其两阶段引导过程的一部分来加载模块,这样才能稍后使用真正的文件系统,并挂载实际的根文件系统。
It then commits just a part of the memory, and it is only for this part that the memory manager needs to allocate pages in real memory and in the paging file to back them up.
然后它仅仅提交一部分内存,这也是内存管理程序需要在实际内存和分页文件中分配页来支持它们的那一部分。
This file enables our application to simulate real conditions, and to test with different values, devices or accounts.
该文件使应用程序能够模拟真实的情况,并通过不同的值、设备或帐户进行测试。
In a nutshell, the kernel is booted as normal; but instead of mounting the "real" root file system, a miniature root filesystem is created in RAM, and that is mounted.
简而言之,内核像平常一样引导;但不安装“真实的”根文件系统,而是在RAM中创建微型根文件系统并安装该系统。
There would also be no real penalty for a transaction failing occasionally due to a locked file.
如果一个事务在很偶然的情况下因为加锁的文件而失败了,那么这并不会产生实际的问题。
This is where the real CSS file will be stored when the output is generated.
当生成输出时,这里是真正的CSS文件将存储的地方。
This approach allows you to get the real location of the JSP file without having to include the context root of the project in the code.
这种方式允许您获得JSP文件的真实位置,而且不需要在代码中包含项目的上下文根。
Most of the examples that I will cover deal with practical, real-life problems like script configuration and setup, file handling, and database usage.
我要介绍的大多数示例都是用来处理诸如脚本配置和安装、文件处理以及数据库使用之类的实际问题。
For example, the real data source for the report shown in Figure 4 is an XML file; I've shown part of its contents in Figure 5.
例如,图4中所示报表的实际数据源是一个XML文件。我在图5中展示了其部分内容。
The real sin, then, was that the file-sharers wanted a service that Comcast did not care to provide.
由此可见,真正的罪过在于,康卡斯特公司不乐意提供文件共享者需要的服务。
You might have to adapt that setting depending on the real context root under which your EAR file is deployed.
您必须根据EAR文件部署到的实际上下文根调整该设置。
If the message indicates success, information from the returned message gets stuffed into the struct stat object, replacing the real data with the recorded data from the virtual file system.
如果消息表明成功,来自返回消息的信息将填充到structstat对象,从而使用来自虚拟文件系统的记录数据取代真实的数据。
Numerous tools, such as mkinitrd, can be used to automatically build an initrd with the necessary libraries and modules for bridging to the real root file system.
有很多工具,例如mkinitrd,都可以用来使用必要的库和模块自动构建initrd,从而用作与真实的根文件系统之间的桥梁。
Next the document is sent to the Template object, which does the real indexing, using the indexing engine specified in the configuration file.
接下来,文档将发送给Template对象,由该对象使用在配置文件中指定的索引引擎执行实际索引。
Now that you have installed Hadoop and tested the basic interface to its file system, it's time to test Hadoop in a real application.
既然已经安装了Hadoop并测试了文件系统的基本接口,现在就该在真实的应用程序中测试Hadoop了。
In the real world, as mentioned earlier, your WSDL file would be picked up a by an interested party that would then use it to create their own Web service consuming application.
正如前面提到的,在现实世界中,将由有关方获取您的WSDL文件,然后使用其创建自己的Web服务使用应用程序。
Similarly, readdir and filetype allow you to remain blissfully ignorant of the machinations and trappings of the real, underlying operating and file systems.
类似地,readdir和filetype允许您不必了解真实的、底层操作和文件系统的圈套和陷阱。
While the filter file is designed to be parameterizable through the use of param or paramDef elements, in real customer applications it is not practical to customize this file at runtime.
虽然通过param或者paramDef这两个参数的使用,过滤器文件被设计成可参数化, 但是在实际的客户应用中,在运行时定制这个文件是不切实际的。
The file inheritable and permitted sets will be full on if the process's real or effective uid is 0 (root) or the file is setuid root.
如果进程的真实uid或有效uid是0(根用户),或者文件是setuid root,那么文件的可继承集和允许集就是满的。
The cannot mount rootfs error always happens when your system tries to switch the initrd root file system to the real root file system disk with the device name in this configuration.
当系统尝试将initrd根文件系统切换到拥有此配置中的设备名称的实际根文件系统磁盘时,经常会出现can notmount rootfs错误。
After the kernel is booted, the root file system is pivoted (via pivot_root) where the initrd root file system is unmounted and the real root file system is mounted.
在内核引导之后,就可以正式装备根文件系统了(通过pivot _ root):此时会将initrd根文件系统卸载掉,并挂载真正的根文件系统。
The initial RAM disk (initrd) is an initial root file system that is mounted prior to when the real root file system is available.
初始ram磁盘(initrd)是在实际根文件系统可用之前挂载到系统中的一个初始根文件系统。
Because the root file system is a file system on a disk, the initrd function provides a means of bootstrapping to gain access to the disk and mount the real root file system.
由于根文件系统是磁盘上的一个文件系统,因此initrd函数会提供一种启动方法来获得对磁盘的访问,并挂载真正的根文件系统。
Because the root file system is a file system on a disk, the initrd function provides a means of bootstrapping to gain access to the disk and mount the real root file system.
由于根文件系统是磁盘上的一个文件系统,因此initrd函数会提供一种启动方法来获得对磁盘的访问,并挂载真正的根文件系统。
应用推荐