如果日志中没有条目,那么代码就会跳过方法的其余部分,因为测试用例的执行是干脆的,并没有得到什么信息。
If there is no entry in log, the code skips the rest of the method because test case execution is clean and there is no information to capture.
接下来的范例代码首先会检查测试用例完成以后日志文件是否做了一个条目。
The following sample code first checks if an entry is made to the log file after the test case completes.
我们需要的第一个条目是一个插件项目,我们的代码和扩展将放在这个插件项目中。
The first item that we require is a plug-in project where our code and extension will reside.
你可以从这个局部列表中看到,多数的条目没有包括代码。
As you can see from this partial list, the majority of these items don't involve code.
我们可能有很多作为条目的目录,附属的范例代码会处理这些目录。
It would also be possible to have more catalogs as entries, which the attached sample code does handle.
接下来的范例代码首先打开了问题视图,然后检查问题视图是否包含有一个条目。
The following sample code first opens the Problems view, then checks whether the Problems view contains an entry.
但是,默认的情况是,EMF代码生成器只为全局元素生成映射条目,而不为局部元素生成。
However, by default, the EMF code generator only generates mapping entries for global elements, not for local elements.
那些新近从事内核开发的人开始时的工作可以选择列表中的条目,这样让他们可以通过小项目学习如何编写内核代码,同时有机会为社区做出贡献。
Those who are new to kernel development can work on items from this list, allowing them a chance to benefit the community while learning how to write kernel code on smaller projects.
底部的测试代码先删除数据库中的所有条目。
The test code at the bottom starts by deleting all the entries from the database.
剩下的代码打印顶层消息包的细节和每个条目。
The rest of the code prints out the top-level feed details, and a stanza for each item.
在编写存储库的映射代码之前,需要充分理解IICE中的条目是什么。
Before you begin writing the mapping code for items in your repository, you need a solid understanding of what an item is to II CE.
清单3中显示的代码只将新条目添加到records表中,计算并返回记录数目。
The code shown in Listing 3 simply adds a new entry into the records table, counts the number of records, and returns it.
在更新文档时仅需在文档Atom条目中包含已更新的字段;在上一个代码片段中,我们更新了Price字段。
You need to include only the updated fields in the document Atom entry when updating the document; in the preceding code snippet, we updated the Price field.
接着,代码定义了应该在表单中出现的条目,在本例中,只有一条num字段。
Next, the code defines the items that should appear in the form. For this example, there is a single item, the num field.
实际上,这解释了利用并将条目添加到属性集中的方法在Struts代码库中是一种惯用模式。
In fact, this illustrates that the way entries are harvested and added to sets of attributes is an idiomatic pattern in the Struts code base.
以下代码示例从purchaseorder表中删除一个条目,并将修改后的文档作为查询结果。
The following code example removes an item from the purchaseorder table and gives the modified document as a result of the query.
既然已经学习了如何使用readdir和stat来查找目录中的条目,那么让我们来看看演示这些函数的一些实际代码。
Now that you've read about using readdir and stat to find out about the entries of the directory, let's look at some code that demonstrates these functions in action.
可以使用Tasks视图作为您自己或者基于项目的to - do列表,这将允许您用诸如ToDo、FixMe、Optimize之类的条目标记代码。
We can use the Tasks view as your own or a project-based to-do list, which allows you to tag code with items like ToDo, FixMe, Optimize, etc.
下列代码片段中显示的帮助器类(RecipientResolver)使用SametimeLookupService和resolver类将收件人名称转换为Sametime目录条目(STObject实例)。
A helper class (RecipientResolver), shown in the following code snippet, USES Sametime LookupService and Resolver classes to convert recipient names to Sametime directory entries (STObject instances).
每个path元素包含了一个dirname元素,所以代码搜索名称为dirname的元素,并获取其中的第一个条目。
Each path element contains a single dirname element, so the code searches for elements named dirname and grabs the first entry.
我并没有介绍如何创建和条目,因为它们会根据您的公司用于维护Excel代码清单的模板不同而不同。
I don't show how to create the and entries because they differ, depending on the template that your organization USES to maintain its code lists in Excel.
我最初是在internettablettalk网站 上找到了关于这个库的条目,作者在这个网站上采用 GNULesserGeneralPublicLicense (LGPL)version3开放源码许可协议发布了示例代码。
I initially found an entry about this library on the internet tablet talk site, where the author posted sample code under a GNU Lesser General Public License (LGPL) version 3 open source license.
另外一方面,尝试通过设计让你的代码规避这样全盘通吃的条件,保证它只接受指定的意料之中的条目。
On the other hand, try to design your code to avoid a catch-all clause by ensuring it only receives specific items that are expected.
如果日志文件中包含有什么条目,那么代码就会创建基于场景名的文本文件,浏览日志文件,并将条目写入到文本文件中。
If the log file contains any entries, the code creates a text file based on the scenario name and, scans the log file, and writes the entries to that text file.
这里所介绍的代码将浏览命令行中指定的一个或多个目录,并显示在该目录中找到的每个条目的相关信息。
The code presented here reads through one or more directories specified on the command line, and prints some information about each entry found in the directories.
首先,修改数据库纲要,其次,更新代码以支持新的纲要,然后添加将提要条目和网页保存到数据库中的功能。
First, modify the database schema, then update the code to support the new schema. Next, add the functionality to save feed entry and web pages to the database.
正如您在本系列的第2部分中所见,此限制意味着必须将诸如数据库代码之类的条目置入系统的其他部分中。
As you saw in part 2 of this series, this restriction means that you must put items like database code in other parts of your system.
最后,对于列出博客库中的博客条目、创建博客条目和评论博客条目,我们将给出生动的示例代码,帮助您进一步理解这些基于REST的服务。
Finally, we present live sample code for listing the blog entries in a blog library, creating a blog entry, and commenting on a blog entry, to help you further understand these REST-based services.
您可以替换操作实体、条目操作、状态变更、重要属性以及配置初始化中的代码引用。
You can replace code references in operation bodies, action on entry, action on exit, reaction in state, overridden properties, and configuration initialization.
它的目的不是取代项目的站点或代码库,而是在可以添加到目录中的这些存储库中提供到优秀条目的链接。
The purpose is not to replace the project's site or code bin, but instead to provide links to good entries in these repositories that can be added in the catalog.
应用推荐