Override expectations: can set default expectations in a fixture setup, and override as needed on tests.
重载期望:可以在全局设置时给Mock方法设置缺省的期望,在测试方法中可以根据需要对它进行重载。
Based on the part surface errors and fixture setup errors, locating error model of three-dimensional part is built.
基于定位点处的尺寸偏差,建立了三维零件的定位误差模型。
The setUp function provides the test author with his or her opportunity to optionally construct a test fixture.
setUp函数给测试者提供了一个机会,可以选择在此构造测试夹具(test fixture)。
A fixture, or a TestFixture in the CppUnit context, is meant to provide clean setup and exit routines for individual tests.
在CppUnit上下文中,fixture或TestFixture用于为各个测试提供简洁的设置和退出例程。
It is only when you need to alter timeouts, perform setup operations, or tear down data after a test that you would need to construct a test fixture.
只有在需要更改超时值、执行设置操作或在测试后要拆除数据时,才需要构造一个测试装置。
In this case, you simply ensure a clean data set via the CLEAN_INSERT flag in some enhanced fixture logic in the setUp method of the MockStrutsTestCase type defined in Listing 4.
在这个示例中,只是通过清单4中定义的MockStrutsTestCase类型的setUp方法中的一些增强的fixture逻辑中的CLEAN _ INSERT标志来保证干净的数据集。
In practice a test fixture usually is a combination of setup and teardown functions, associated with test case.
实际上测试夹具通常是安装和拆卸函数的组合,和测试用例结合。
In practice a test fixture usually is a combination of setup and teardown functions, associated with test case.
实际上测试夹具通常是安装和拆卸函数的组合,和测试用例结合。
应用推荐