• Listing 16 shows a unit test to test this service, which was essential to developing the example application.

    清单16给出用于测试这个服务单元测试,对于开发示例应用程序必需的

    youdao

  • Listing 17 shows an example of two related updates occurring as an atomic unit.

    清单17显示两个相关更新作为一个原子单元出现示例

    youdao

  • To refine your unit test further, you can assert that the validation failed for a specific constraint on a specific field, as shown in Listing 8.

    进一步细化单元测试可以断言验证会因为特定字段的特定约束失败如清单8所

    youdao

  • The example in Listing 5 shows how translations from HTML and RTF documents can be mixed in a translation unit.

    清单5中的例子说明htmlrtf文档中的翻译如何混合出现翻译单元中。

    youdao

  • For instance, if you want to subdivide each of the two grids in the previous listing into two units where one unit is twice as wide as the other, you write the code shown in listing 10.

    举例来说,如果希望之前清单中的网格继续划分两个单元其中单元一个单元的两宽度可以编写清单10代码

    youdao

  • For these purposes of intended unit representation, an optional conceptual attribute with a default value of false exists on a unit, as shown in Listing 5.

    为了达到有意单元表示目的,这个单元上一个带有错误默认强制性概念性属性,如清单5所

    youdao

  • In the topology shown in Listing 9, core unit types and unit types from a J2EE domain are used together.

    清单9中显示拓扑中来自一个j2ee单元类型单元类型一起使用的。

    youdao

  • The unit can contain artifact(s) where each of the artifact instances is uniquely identified by its name within the scope of a unit, as shown in Listing 22.

    在在个单元包含工件中,其中个都可以在这个单元范围内通过名称进行唯一的识别如清单 22所

    youdao

  • In addition, you can specify a member requirement on a unit that allows members through the member relationship link, as shown in Listing 20.

    此外还可以确定一个单元成员需求,并且这个单元允许这些成员穿过这个成员关系连接如清单20

    youdao

  • The listing shows a utility class that gets used by the unit test.

    这个清单给出单元测试使用实用程序

    youdao

  • You can further classify a unit using stereotypes as an additional keyword on the unit, as shown in Listing 6.

    可以构造型看作是这个单元额外关键字个单元进一步进行分类如清单6

    youdao

  • Requirement is contained in the unit and is uniquely identified by its name with in the scope of a unit, as shown in Listing 16.

    这个单元中的需求唯一通过在这个单元范围内名称来鉴定的,如清单16

    youdao

  • Testing the form validation can also be done in the unit test (Listing 19 shows the form validation test code).

    表单验证测试可以单元测试完成清单19展示了表单验证的测试代码)。

    youdao

  • Now write the corresponding unit tests, shown in Listing 18

    现在编写相应单元测试如清单18

    youdao

  • The model allows you to set a configurationUnit attribute on the unit to specify that it is a configuration, as shown in Listing 4.

    这个模型允许configurationUnit属性设置这个单元,并具体指定一个配置如清单4

    youdao

  • This refactoring enables the unit test code shown in Listing 1.

    重构启用清单1中所单元测试代码

    youdao

  • Listing 1 is an actual translation unit.

    清单1一个实际翻译单元

    youdao

  • For example, Listing 1 defines a unit test that USES JUnit to verify a stubbed out data class called BeerDaoStub.

    例如清单1定义了单元测试,该测试使用JUnit验证一个叫做BeerDaoStub的存根数据

    youdao

  • Listing 1 adds some div elements, mostly so you can deal with the image gallery as one unit, and details about the image (which you'll add soon) as the other major element.

    清单1添加一些div元素主要为了能够图片库作为单元处理有关图像细节(稍候会添加)则作为一个主要因素

    youdao

  • A MemberLink instance defined in the topology model is uniquely identified by its name within the scope of a unit, as shown in Listing 28.

    这个拓扑定义MemberLink实例在这个单位范围只能通过名称识别如清单28

    youdao

  • A HostingLink instance defined in the topology model is uniquely identified by its name with in the scope of a unit, as shown in Listing 26.

    定义这个拓扑中的HostingLink实例在这个单元范围只能通过名称识别如清单26

    youdao

  • As a result, you see lots of tests for things that are easy to test (equals and toString tend to pop out; see Listing 1), and the real logic of the unit under test is ignored.

    结果看到容易测试(equalstoString往往突出参见清单1)内容进行多次的测试,单元真正逻辑却被忽略了。

    youdao

  • The unit declaration for the MySQL database system looks like the code in Listing 2

    MySQL数据库系统单元定义代码清单 2 所

    youdao

  • Let's say that the complex_calculation method takes so long that you only want to run it when doing acceptance tests, not during unit test runs. One way to limit it appears in Listing 12.

    如果complex_calculation方法运行时间较只想在执行验收测试时运行而不想单元测试期间运行它。

    youdao

  • Listing 4. Persistence unit XML entry within web.xml.

    清单4. web .xml中的持久性单元xml

    youdao

  • Listing 15: Simple Wicket unit test using JUnit and WicketTester.

    清单15使用JUnitWicketTester简单Wicket单元测试

    youdao

  • Listing 2 is a snippet of an Ant script that demonstrates the junit task to execute a batch of unit tests.

    清单2ant脚本片段介绍执行单元测试的junit任务

    youdao

  • To mock out the Grails validation in a unit test, add the mockForConstraintsTests method, as shown in Listing 6.

    单元测试中模拟Grails验证添加mockforconstraintstests方法如清单6

    youdao

  • Once the leak was fixed, I wanted to make sure the problem wasn't reintroduced in later code changes, so I built a unit test to help prevent this. It's a resource usage unit test, shown in Listing 1.

    下面是个例子:邮件应用程序中发现一个内存泄漏泄漏处理希望确定在以后的代码改变不会再发生该问题于是为此构建了一个单元测试

    youdao

  • Listing 16: Base test class for Wicket unit tests of Warsaw and Global projects.

    清单16warsawGlobal项目Wicket单元测试

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定