场景3:使用jMock和RMock 模拟带有非默认构造函数的具体类
Scenario 3: Use jMock and RMock to mock a concrete class with a nondefault constructor
例如,表示非空容器的任何类在构造函数中必然使用表示其元素的参数。
For instance, any class representing a non-empty container would naturally take arguments representing its elements in the constructor.
如果以非wsdl模式创建服务器,我们必须指定服务器uri;在清单3中,这是在作为第二个参数传递给构造函数的选项数组中指定的。
When setting up the server in non-WSDL mode, it is mandatory to specify the server URI; in Listing 3, this is specified in the options array passed to the constructor as the second argument.
如果某人触法源于异常的神经构造使人别无选择,那么这人就不该受罚,这种观点有争议,却非新鲜事。
The idea that someone should not be punished if their abnormal neural make-up leaves them no choice but to break the law is contentious but not new.
XAML 2009将完全支持泛型、非默认构造方法、工厂方法、内建类型并且可以定义新的属性。
In XAML 2009 we see full support for generics, non-default constructors, factory methods, built-in types, and defining new properties.
四川盆地下二叠统中次生白云岩及古岩溶是下二叠统主要的非构造圈闭储层之一。
The secondary dolomite and paleokarst of the Lower Permian Series in Sichuan basin is one of the important atectonic reserviors in the basin.
地球化学特征及区域构造演化背景等表明岩石形成于挤压造山向非造山转换的后造山拉张环境。
Geochemical characteristics and regional tectonic evolution background indicate that the rocks were formed in a post-orogenic extension environment.
濮城油田文51断块区是一个典型的多油层非均质油藏,油气分布受构造—岩性双重因素控制。
The fault-block W51 is a typical multizones hetergenous reservoir, the oil-gas distribution is controlled by structure and lithology .
构造了正交小波变换矩阵,分析了平稳模型和非平稳模型下正交小波变换的残余相关特性。
Orthogonal wavelet transform (OWT) matrix is constructed and the residual correlation property of OWT is analyzed under the stationary and nonstationary models.
将这种方法应用到具体的非晶相绝缘体中,以材料的实际结构来构造双势垒模型,得到的结果与实验相吻合。
When it is applied to amorphous insulating materials with double well potential model being constructed based on real structure, simulation results are in accord with experiments.
在有限维希尔伯特空间中构造了非简谐振子的广义相干态,并研究了其量子统计特性。
Generalized coherent states of a non harmonic oscillator in a finite dimensional Hilbert space are constructed and some quantum statistical properties are studied.
依据构造样式和圈闭特征,将辽河盆地的圈闭划分为构造圈闭和非构造圈闭两大类。
Based on the structural styles and trap characteristics, the traps in Liaohe basin are classified into structural trap and non-structural trap.
深入阐述“绿色凝灰岩区”和“非绿色凝灰岩区”的区域构造演化特征以及与成矿的关系。
The regional tectonic evolution characteristics of "green tuff region" and "Non green tuff region" and their relationship with uranium mineralization are elaborated in depth.
利用永磁铁间同极相斥的特性,构造了用于汽车减振系统的一种非接触、非线性的磁力弹簧。
Using the character of permanent magnetic iron, the magnetic spring was constructed with the character of non-connection and non-linear.
采用光强的互补编码,利用体全息关联特性,构造了一种内容寻址的、基于与非操作的光学全息真值表查询系统。
Adopting complementary-encoding of light intensity and volume holography, a content-addressable optical holography truth table look-up system based on the NAND operation is structured.
对于地质构造复杂的大型非均质油田,油层作用波及系数对采出过程和最终采收率起着决定性作用。
The sweep efficiency of an oil reservoir plays a decisive role in the course of oil production and the ultimate recovery in a large heterogeneous oil reservoir with complex geological structure.
随着松辽盆地南部大型构造圈闭勘探的不断深入,勘探的目标区已经逐渐转移至以岩性因素起主导作用的非构造油气藏。
With further exploration of major structural traps in southern Songliao basin, the prospecting target has gradually focused on the non-structural reservoirs dominated by litho-stratigraphic traps.
研究和应用非接触式的地球物理 超前探测技术,准确及时地预报掘进前方隐伏的导、含水构造,对于煤矿的防治水 工作与安全生产具有十分重要的现实意义。
The development of a new geophysical technology to detect buried water conducting passages and to predict water-bearing structures accurately and instantaneously is of great operational importance.
隧洞不良地质段包括断层、低强度的软弱夹层、地质构造发育的结构松散地层、非岩性粘土、高地应力地层和富水地层等。
The tunnel adverse geological faults include faultage, low strength, geological formation and development of loose, non-rock clay, high stress formation and water-rich strata.
利用线性变换,统一给出常系数线性方程齐次通解和非齐次特解解构造定理的简化证明。
Using linear transform, the simple proof for solution of higher order linear differential equations was given.
根据非层状地下空间处地层产状及定位特征点数,给出了确定地层构造形态的方法。
From the attitude of strata and the number of characteristic point at an underground non-bedded shape room, the method to determine the equation of stratum structure was presented.
新兴的非形式逻辑或论证逻辑,从论辩实践出发,构造了新的论证理论。
The newly arisen informal logic or logic of argument constructs new theories of argument from the practice of argumentation .
采用泰勒展式系数匹配的方法构造出了非等距网格系统的紧致差分格式,并分析了其截断误差。
Compact finite difference scheme (CFDS) based on non-uniform meshes is constructed by matching the Taylor series coefficient expansion, and its truncation errors are analyzed.
本文在截尾样本下构造了失效率的一种截尾非参数估计,并给出了其均方收敛及强相合性的局部一致收敛速度。
In this paper, a nonparametric estimator terminated of failure rate is constructed based on censored data, and its rates of convergence in mean square and strong consistency are given respectively.
对非构造成因的地裂缝也作了简单的论述。
样式表中的非xslt构造。
精细解释表明,此类丘状体是低倾角逆断层构造、斜坡滑塌堆积及浊积扇等非礁滩沉积体的地震响应。
The accurate interpretation shows that such domal bodies are the seismic reflections of non-reef-bank deposits of low angle thrust faults, slope slump accumulative zones and turbidite fans.
本文导出一种等参协调元位移函数的新的表示方法,在此基础上建立起了构造等参非协调元的新方法。
A new method to express the displacement field of isoparametric compatible element is presented in this paper, based on it a new method for formulation of incompatible finite elements is developed.
本文导出一种等参协调元位移函数的新的表示方法,在此基础上建立起了构造等参非协调元的新方法。
A new method to express the displacement field of isoparametric compatible element is presented in this paper, based on it a new method for formulation of incompatible finite elements is developed.
应用推荐