adj. atectonic
misc. nonorgenic
场景 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.
应用推荐