我的意思是,您只需假定您正在为其编写测试的类已经存在。
What I mean is that you simply pretend that the class you are writing the test for exists.
在编写测试时,您假设正在使用的类已经存在,然后按照您希望在系统其余部分中使用的方式来使用该类。
When you write the test, you're pretending the class you're using already exists, then you're using that class the way you'll want to in the rest of the system.
一旦对所有用例都完成了,我们就分析代码的实现模型来检查某些类(文件)的逻辑分组是否已经在代码中存在。
Once this is done for all the use cases, we analyze the Implementation Model of the code to check if some logical grouping of the classes (files) already exists in the code.
如果您想调用的代码已经存在,则只需改变类名以与它的名称匹配。
If the code that you want to call already exists, just change the class name to match its name.
一旦一个类已经被装载,它们总是作为一对存在。
Once a class has been properly loaded, these will always exist as a pair.
在实现已经存在的情况下,您还可以通过包装器类使用数组来将其作为可互操作的Web服务公开。
In cases where an implementation already exists, you can still use an array to expose it as an interoperable Web service by using wrapper classes.
最好将它与应用程序源目录分开,因为可能已经存在一些值类,wscompile会覆盖它们。
It's better to separate it from the application source directory because some value classes can already exist, and wscompile overwrites them.
但是,此代码存在一个潜在的问题:如果squarepeg类已经包含一个与圆孔没有任何关系的radius方法,那又该怎么办呢?
However, a potential problem does exist with this code: what if the SquarePeg class already had a radius method that has nothing to do with round holes?
“已经存在的死亡威胁加上导致死亡的这种疾病会使得东北虎们处于一个生死存亡的关键点。”Miquelle对虎类保护者们说。
"The addition of disease-related deaths to existing sources of mortality could push this population over a tipping point," Miquelle told the Guardian.
利用这些比较,绑定编译器可以确定在类中发现的已经存在的方法是否仍然需要,并避免创建重复的类或方法。
The binding compiler USES these comparisons both to make sure that pre-existing binding methods it finds in classes are still needed, and to avoid creating duplicate classes or methods.
如果能运行ij工具,那么dblook类文件就已经存在于CLASSPATH中了。
If you can run the ij tool, the dblook class files are already in your CLASSPATH.
类IndexReader负责从一个已经存在的索引中删除文档,如清单2所示。
The IndexReader class in Lucene is responsible for removing documents from the existing index, as demonstrated in Listing 2.
这种语言包含一种结构(category),它允许程序员给一个已经存在的类添加新的方法;uml中则没有这种功能。
The language includes a construct (a category) that allows the programmer to add new methods to an existing class; this is not a capability provided by UML.
有时候,已经存在一个bean类,其中包含所有需要的关系映射元数据,但是这个类所映射的底层物理表却丢失了。
There are also instances when a given bean class with all the required relational mapping meta-data exists, but the underlying physical tables to which it is mapped are missing.
这样就使得使用已经存在的类作为切面成为可能,而且扩展Spring的非入侵编程模型到潜在的切面以及普通的类。
This allows the important possibility of using existing classes as aspects, further extending Spring's non-invasive programming model to embrace potential aspects as well as regular classes.
当目前执行的类已经编译,但是找不到它的定义时,会存在searched -for类定义。
The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found.
继承允许你根据一个已经存在的类定义一个新的类。
Inheritance lets you design a class by deriving it from an existing one.
到了早晨,他已经证实了一类富克斯函数的存在。
When morning came, he had established the existence of one class of Fuchsian functions.
可以将一个接口的实现,增加到任何已经存在的第三方的类中。
An interface implementation may be added to any existing third party class.
在这样做时,他们已经形成了一个的一类坏人-如果车确实存在。
In doing so, they have created a one-of-a-kind hellion - if the car really does exist.
在定义对象时,可以用已经存在的要素类定义对象,以构造更为复杂的对象类型。
When an object is being defined, existing feature classes can be used as object types to make more complex objects.
例如,库编写者必须保证在修改库中的一个类时,不去掉已经存在的方法,否则会导致客户代码的崩溃。
For example, the library programmer must agree to not remove existing methods when modifying a class in the library, since that would break the client programmer's code.
继承允许你定义一个新的类。这个新的类—包含并且扩展原来已经存在的类。
Inheritance allows you to define a new class that incorporates and extends an already declared class.
第二天早上之前,我已经建立好一类Fuchsian函数的存在性证明,这些函数来自于超几何序列;
By the next morning I had established the existence of a class of Fuchsian functions, those which come from the hypergeometric series;
这种方法意味着应用重启时比“冷启动”更快,因为基类加载器已经存在并可用。
This approach means that application restarts are typically much faster than "cold starts" since the base class loader is already available and populated.
一些已经存在的NHPP类软件可靠性增长模型是这个框架的特例。
Many existing NHPP software reliability growth models are special cases o...
假设你有一个类并且已经将这个类的某一个对象序列化存储了,那么如果你在这个类中加入了新的成员变量,那么在反序列化刚才那个已经存在的对象的时候会怎么样?
Suppose you have a class which you serialized it and stored in persistence and later modified that class to add a new field. What will happen if you deserialize the object already serialized?
假设你有一个类并且已经将这个类的某一个对象序列化存储了,那么如果你在这个类中加入了新的成员变量,那么在反序列化刚才那个已经存在的对象的时候会怎么样?
Suppose you have a class which you serialized it and stored in persistence and later modified that class to add a new field. What will happen if you deserialize the object already serialized?
应用推荐