Add a simple unit validator method.
添加一个简单的单元确认器方法。
It seems to be a simple unit of a factory one.
这似乎是一个简单的单位,一家工厂之一。
In Part 1, you implemented a simple unit test and a few fixtures.
在第1部分中,实现了一个简单的单元测试和几个fixture。
The application we will create will be a simple unit-converter application.
我们将创建的应用程序是一个简单的单位转换应用程序。
Service tests can be developed with a simple unit testing framework like JUnit or Cactus.
可以使用简单的单元测试框架(JUnit或 Cactus)来开发测试。
The stabilizing feet, guiding angle, and collection bowl were all integrated into one simple unit.
稳固的底座,指示角度以及笔屑槽都被融合成为一个简单的整体。
So the code is "clean and green," according to my simple unit test case — but that's meaningful only if I'm really testing the code thoroughly.
根据前面简单的单元测试用例,这块代码是“干净,绿色”的——但只有在我真正彻底地测试这块代码的情况下这才有意义。
In the sections that follow, I show you a few simple unit tests that ensure that you do not inadvertently change the serialization format of your serializable classes.
在本文后续各节中,我将为您展示一些简单的单元测试,这些单元测试能确保您不会不经意地更改可串行化类的串行格式。
Sometimes I hear developers lump the term developer tests as simple unit tests; however, I've found that it's helpful to refine the term unit testing as something more specific.
有时,我听到开发人员将开发人员测试这一术语与简单的单元测试相混淆;然而,我发现将单元测试这一术语提练得更加明确很有帮助。
Each elemental unit has a simple layout consisting of a rectangular box and a triangular roof.
每个元素单元都有一个包括矩形框架和三角形屋顶的简单布局。
In these days the pre-industrial city in America functioned as a complex and varied organizing element in American life, not as a simple, homogeneous, and static unit.
在这些日子里,美国未工业化的城市在美国人的生活中是一个复杂而多样的组织元素,而不是一个简单的、同质的、静态的单位。
I imagine some simple refactorings can be performed even without unit testing in place.
我想,一些简单的重构可以在没有单元测试的情形下进行。
This testing may range from basic installation of the product, unit testing, simple configuration, or formal FVT or SVT activities.
该测试可能延伸到基本的产品安装、单元测试、简单的配置,或正式的FVT 或 SVT 活动。
The tests also show one of the other best practices for writing unit tests; keep the tests as simple and small as possible.
这些测试还显示了编写单元测试的另一种很好的做法,那就是让测试尽量地简单和小巧。
When you're dealing with simple data or service objects, writing unit tests is straightforward.
当您正在处理简单数据或服务对象时,编写单元测试很简单。
The process for building mock objects from interfaces is simple, straightforward, and helps me develop effective unit test suites.
从接口创建模拟对象的过程简单易行,并能帮助我们开发有效的单元测试套件。
We want our unit tests to be simple and execute quickly.
我们想要单元测试简单快速的执行。
The innermost level consisted of lower level practices such as pair programming; coding standards; unit and function testing; refactoring; simple design; and the 40-hour week.
最内层的级别包括比较底层的实践,比如结对编程、编码标准、单元测试和功能测试、重构、简单设计,以及每周工作40小时。
This example shows a simple way to validate a unit.
该范例显示了确认单元的简单方式。
We'll add features to a running example by iteratively following a simple principle: write a unit test, make it pass.
我们向一个贯穿全文的例子中逐渐添加新功能,并遵循如下简单的规则:编写一个单元测试,然后让它通过。
We have seen how simple mock objects can enable repeatable unit testing of a BPEL process, and described a simple framework that greatly eases the construction of mock objects.
我们了解了简单的模拟对象如何实现BPEL流程的可重复单元测试,并描述了一个简单的框架,该框架极大地简化了模拟对象的构造。
The off-the-shelf unit is ready to explore after a simple installation involving the computer, but Mr.
在电脑上安装了一个简单的程序之后,现成的机器人装置就可以开始它的探索工作了。
Early network Bridges, protocol converters, and routers were simple dedicated hardware units typically configured through a terminal directly connected to a serial port on the unit itself.
早期的网桥、协议转换器和路由器都是简单的专用硬件设备,通常是通过直接连接到该设备本身串口的终端来配置的。
Creating a simple, traditional decorator for each case is too cumbersome, and it would add so much syntax to your code that it would be hard to determine which unit of work you're aiming for.
为每个操作创建一个简单的传统修改器过于麻烦,并且会向代码添加大量语法,从而造成难以确定目标工作单元。
Transaction -- a series of actions performed as a single logical unit of work in which either all of the actions are performed or none of them are (also called a local or simple transaction).
事务--作为工作的单一逻辑单元而执行的一系列操作,在执行过程中要么所有的操作都被执行,要么一个都不执行(也被称为本地或简单事务)。
Listing 15: Simple Wicket unit test using JUnit and WicketTester.
清单15:使用JUnit和WicketTester的简单Wicket单元测试。
The off-the-shelf unit is ready to explore after a simple installation involving the computer, but Mr. Oschler added a few enhancements to the software, which he distributes at robodance.com.
在电脑上安装了一个简单的程序之后,现成的机器人装置就可以开始它的探索工作了。但是Oschler又对软件做了一些改进,并将其发布在robodance.com上。
It leverages the Blueprint container's ability to manage both persistence contexts and global transactions to ensure the business logic remains as simple as possible to develop and unit test.
它利用Blueprint容器的功能来管理持久性上下文和全局事务,以确保业务逻辑的开发和单元测试尽可能保持简单。
Creating and running unit tests with WicketTester is fast and simple, as shown below.
使用WicketTester创建、运行单元测试非常快速、简单,如下所示。
Creating and running unit tests with WicketTester is fast and simple, as shown below.
使用WicketTester创建、运行单元测试非常快速、简单,如下所示。
应用推荐