Service tests can be developed with a simple unit testing framework like JUnit or Cactus.
可以使用简单的单元测试框架(JUnit或 Cactus)来开发测试。
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.
在这些日子里,美国未工业化的城市在美国人的生活中是一个复杂而多样的组织元素,而不是一个简单的、同质的、静态的单位。
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.
从接口创建模拟对象的过程简单易行,并能帮助我们开发有效的单元测试套件。
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小时。
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容器的功能来管理持久性上下文和全局事务,以确保业务逻辑的开发和单元测试尽可能保持简单。
As a simple example, by watching central processing unit (CPU) usage on a Web server, you can see when it is overloaded.
作为一个简单的方法,查看一下Web服务器上的中央处理单元(CPU)使用率,就可以了解CPU是否负载过重。
It is not advisable to use simple file-based databases like Cloudscape or Derby as a database management system for WebSphere Process Server, other than for the purpose of unit testing.
不建议使用Cloudspace或Derby这样的基于文件的简单数据库作为WebSphereProcessServer的数据库管理系统,单元测试除外。
The first is a simple bytecode language that you can use to create scripts that you download into the unit.
第一种方式是一种简单的字节码语言,您可以用它来创建脚本,并且将其下载到工作单元之中。
If you have a very simple project, writing unit tests for it may take time that would be better spent in just writing the project itself.
如果是一个非常小型的项目,那花在编写单元测试上的时间更应该用在写项目上。
The basic unit of user experience on the Web is, of course, the page, which we represent as a simple rectangle.
网络中用户交互的最基本单元是页面,因此我们采用一个矩形符号来表示页面。
In Unit 4 you will be expected to write simple, compound and complex statements. You will have less help than you had in the previous Units.
在第4单元,要求你会写简单句、并列句和复合同。和前几个单元相比,你所能得到的帮助更少。
Unit testing works best when tests are small and focused, and you keep everything else as simple as possible.
当测试较小而且比较集中时,单元测试会工作得很好,因此你要尽可能地让事情简单。
Although in Capital Marx said that the unit to measure labor is simple labor, in fact it referred to social labor on average that was ignored by all.
诚然,马克思在《资本论》中说过,各种劳动的计量单位是简单劳动,但马克思所说的简单劳动实际上就是指社会平均劳动。
Although in Capital Marx said that the unit to measure labor is simple labor, in fact it referred to social labor on average that was ignored by all.
诚然,马克思在《资本论》中说过,各种劳动的计量单位是简单劳动,但马克思所说的简单劳动实际上就是指社会平均劳动。
应用推荐