Creating a unit test involves these steps.
创建单元测试涉及到以下步骤。
The developers drafted a unit test specification for each test.
开发人员为每一个测试起草一个单元测试说明。
Make the proper investment in a unit test, and it pays off later.
在单元测试上做适当的投入,随后将得到回报。
Listing 15: Simple Wicket unit test using JUnit and WicketTester.
清单15:使用JUnit和WicketTester的简单Wicket单元测试。
The listing shows a utility class that gets used by the unit test.
这个清单给出单元测试使用的实用程序类。
Using unit test methods to test every getter method is recommended.
推荐使用单元测试方法来测试每个getter方法。
It also provides a comprehensive way to unit test the pages developed.
它还提供了一种十分全面的方式来对所开发的页面进行单元测试。
It also generates a special class that can be used to unit test the objects created.
它还生成一个特殊的类,这个类可用于对创建的对象进行单元测试。
You ran your unit test -- many times, perhaps -- and it worked perfectly every time.
您运行单元测试 --也许很多次 --并且它每次都运行得很好。
During installation, be sure to select the WebSphere Portal V5 unit test environment.
在安装的过程中,请确保选择了WebSpherePortalV 5单元测试环境。
In these cases, either the unit test or the code to be tested is most likely incorrect.
如果是这样,不是单元测试有问题,就是被测试的代码不正确。
If there is a new configuration option added, there should be a unit test for that option.
如果添加了新的配置选项,那么就应该添加针对该选项的单元测试。
The unit test scripts were configuration-managed so that changes to them could be tracked.
单元测试脚本是可配置管理的,以便对测试脚本的变更可以被跟踪。
To unit test the navigation from View mode to Edit mode, follow the steps defined earlier.
要从View模式到Edit 模式对导航执行单元测试,遵循前面列出的步骤。
This is challenging because there is no network in a unit test and the AJAX call will fail.
这很有挑战性,因为单元测试中没有网络,AJAX调用会失败。
In Part 2, you will see how to run these unit test cases in a continuous integration server.
在第2部分中,您将看到如何在持续集成服务器中运行这些单元测试用例。
If a unit test is harder to write than the code it is testing, it might be a functional test.
如果编写单元测试比编写其所测试的代码更难,则它可能是功能测试。
If any type of exception is thrown in a unit test, the DOH declares the entire test as failed.
如果在一个单元测试中有任何类型的异常被抛出,DOH就会宣布整个测试失败。
A test framework to write unit test for testing gestures (integrated with Visual Studio test).
测试框架,从而为测试手势(与VisualStudioTest整合)编写单元测试。
Developers might use one or more of their own sandbox portals or portal unit test environments.
开发人员可能会使用自己的沙箱门户(也称门户单元测试环境)中的一个或多个。
As you know, that command generates your model, migration, unit test, and even a default fixture.
正如您所知,该命令可生成模型、迁移、单元测试甚至一个默认的fixture。
As you can see, the unit test for a domain class now (with Grails 1.1) extends GrailsUnitTestCase.
可以看到,现在对一个域类的单元测试(在Grails 1.1中)扩展了GrailsUnitTestCase。
NOTE: We strongly recommend that you create a unit test for your unit test component (see figure 1).
注意:在此强烈建议为您的单元测试组件(见图1)创建一个单元测试。
Nevertheless, test-driven portal application development requires broadening the unit test approach.
然而,测试驱动的门户应用程序开发需要拓展单元测试方法。
Execution of tests against each integrated layer of the stack (usually via a unit test environment).
针对堆栈的每个整合层执行测试(通常是通过一个单元测试环境)。
A developer USES a Web services toolkit and unit test environment to create and test the Web service.
开发者使用Web服务工具箱和单元测试环境来创建和测试Web服务。
In an Agile CM environment, a broken unit test is treated with the same seriousness as a broken build.
在敏捷配置管理环境中,损坏的单元测试与损坏的构建严重程度是一样的。
Also, the need to provide an InvocationContext object makes it much harder to unit test advice methods.
而且,需要提供一个InvocationContext对象使得单元测试通知方法困难得多。
Luckily most unit test frameworks (such as JUnit) provide facilities to make this type of testing easy.
幸运的是,大多数单元测试框架(如JUnit)提供了轻松进行此类测试的工具。
The result is code that is easy to unit test, easy to substitute, easy to maintain, easy to change, etc.
这样得到的代码更易于做单元测试、易于替代、易于维护、易于修改等等。
应用推荐