One way to specify the behavior implicitly is to use unit tests written with JUnit (see Resources).
一种隐式地指定行为的方法是使用以JUnit(请参阅参考资料)编写的单元测试。
Many developers use a variant of testing called test-after development (TAD), whereby you write the code and then write the unit tests.
许多开发人员使用称为后测试开发(TAD)的各种测试,你首先编写代码,然后编写单元测试。
I encourage you to use these frameworks, given their power to produce results for unit testing.
我鼓励您使用这些框架,利用它们的力量来生成单元测试的结果。
Several books and papers show how to use mock objects in unit testing. These describe the capabilities that mock objects should have and how to use them.
一些书籍和论文讲述了如何在单元测试中使用模拟对象,描述的是模拟对象应该具备的能力以及如何使用他们。
We might use scenarios as the unit of measure or look at each step that describes system behavior as a feature.
我们可以用场景作为我们度量的一个单元,或者将描述系统行为的每一个步骤作为一个特性。
This means that you can use it in any number of different circumstances: unit tests, production code, and so on.
这意味着您可以在不同的情况下使用它:单元测试、生产代码,等等。
Within the virtual image unit, add units as appropriate to the use of the virtual image.
在虚拟镜像单元之内,添加适当的单元以使用虚拟化的镜像。
The type of CPU is detected along with any optional floating-point unit (FPU) and stored away for later use.
然后会为任何可选的浮点单元(FPU)检测CPU的类型,并将其存储起来供以后使用。
You can use the same type for more than one unit, but it's usually easiest to define a new type for each unit.
您可以使用与不止一个单元相同的类型,但是实际上这是为每一个单元定义新类型最简单的方式。
For example, when use cases and supporting tools are created, a unit tester can retrieve the appropriate class to verify.
例如,当创建用例和支持性工件时,一个单元测试人员可以恢复合适的类来验证。
Make sure that you do your calibration of sensors with the same power supply unit that you intend to use in the field.
请确保您进行传感器校准所用的供电单元与将来在现场使用的供电单元是相同的。
Only a small portion of the actual use case serves as direct input to a unit test case.
只有一少部分地实际用例被直接输入道单元测试用例中。
The goal of a user goal-level use case is analogous to a unit of business value.
用户目标层次上用例的目标,与业务价值的一个单元相类似。
Without such registration, no unit or individual shall export dual-use biological agents and related equipment and technologies.
未经登记,任何单位或者个人不得经营生物两用品及相关设备和技术出口。
During the first quarter, energy intensity - measured as energy use per unit of output - actually increased, Mr. Zhang said.
在第一个季度中,能量密度——定义为每单位产出消耗的能源——事实上增加了,张先生说。
A: As far as I know, the use of new materials could reduce unit cost by 10%.
据我所知,新材料的使用能减少单位成本的10%。
As part of that, I spent time in a burns unit where they use all these amazing splinting textiles that mould around the body.
因而,我花了一些时间在烧伤部,那里他们用神奇的夹板疗法纺织物给身体塑形。
Through a series of manufacturing steps, the onboard materials-processing unit will use the soil sample to fabricate a functioning solar cell.
经过一系列的制造程序,登月飞船携带的材料加工设备将利用月球泥土中的提取的材料制造出可正常运行的太阳能电池。
Unit tests are written from the developer's perspective and focus on particular methods of the class under test. Use these guidelines when writing unit tests
单元测试是从开发人员的角度出发编写的,并且关注的是所测试的类的特定方法。
This means that the browser can use the Graphics Processing Unit, or GPU,to speed up the computations needed to display both 3D and everyday 2D webcontent.
最重要的是,诸多时新浏览器现在都能利用所谓的硬件加速技术,这意味着浏览器可使用图形处理单元,即GPU来加快计算速度,以满足同时呈现3D和日常的2D网页内容的需要。
Unit - KM | m: The units to use, KM for metric, m for English.
unit-KM |M:需要使用的单位,KM表示公制,M表示英制。
You can use this embedded container to run unit tests without having to run an entire servlet container.
可以使用这个嵌入式容器来运行单元测试,而不必运行整个servlet容器。
Wicket supports out-of-container unit testing through the use of a built-in mock object framework.
Wicket通过使用内置的模仿对象框架提供对容器外单元测试的支持。
For Xen, use an operating system unit and add the virtualization.XenHypervisor capability to represent the Xen hosting software.
对于Xen,您可以使用一个操作系统单元,并添加virtualization. XenHypervisor功能以代表Xen主机软件。
While most teams will probably continue to use third-party unit testing tools such as NUnit for other reasons, MSTest is at least one step closer to being a viable option.
虽然大部分团队可能会因为其他原因还是继续使用第三方单元测试工具,如NUnit,不过这个增强让MSTest至少在成为一种可行选择的过程中更近了一步。
To use the organization unit that is currently available in the repository, complete the following steps.
按照以下步骤使用存储库中当前可用的组织单位。
Whether or not you use Contract4J with your unit tests, thinking about the contract of your components will improve your designs.
不论是否使用Contract4J进行单元测试,考虑组件的合约都会改进设计。
You will still want to use JUnit to create unit tests for logic that are called without a Web harness.
您仍然希望利用JUnit为那些没有利用Web而调用的逻辑创建单元测试。
You will still want to use JUnit to create unit tests for logic that are called without a Web harness.
您仍然希望利用JUnit为那些没有利用Web而调用的逻辑创建单元测试。
应用推荐