Measurement是一个case类。
Here is the generated test case class for our simple example.
下面是我们的简单示例所生成的测试用例类。
We see that UnitsSystem is a sealed case class with no attributes.
我们看到,UnitsSystem是一个密封的case类,没有属性。
Now, let's run the test case class on IE, Firefox and Safari browser.
现在,我们将在IE、Firefox和Safari浏览器上运行测试用例类。
Create a new case class to indicate when the whole thing is done processing.
创建一个新的case类来表示什么时候处理全部完成了。
As you can see, lots of things happened with a case class that don't normally happen for a traditional class.
如您所见,伴随case类发生了很多传统类通常不会引发的事情。
At the heart of every jwebunit test case is net.sourceforge.jwebunit.WebTestCase class, which represents a test case.
每个jwebunit测试的核心都是net . sourceforge . jwebunit . webtestcase类,它代表测试用例。
Our pattern match then looks for Alice and Bob by inspecting the values passed to the constructor of the Person case class.
然后,我们的模式匹配通过检查传入的Personcase类的值来查找Alice和Bob。
In this case, the exponentiation operator is another form of binary operator so the existing BinaryOp case class serves.
在本例中,求幂运算符是另一种形式的二进制运算符,所以使用现有BinaryOp case类就可以。
So, in other words, to use my strategy, simply write one test case class, and then always deploy to both the client and the server.
所以,换句话说,要使用我的策略,只需编写一个测试案例类,然后总是将其部署到客户机和服务器就可以了。
For now, it will suffice to say that a case class allows for very terse construction of simple objects with some pre-defined methods.
现在,我们只需要知道,一个case类允许精炼的简单对象的构造,以及一些预定义的方法。
Note that if you wish, you can run the the test case class which contains a main and invokes the junit junit.swingui.TestRunner.main method.
请注意,如果您愿意,可以运行包含main并调用junit junit .swingui . TestRunner . main方法的测试案例类。
This approach makes testing protected methods much easier because the test case class can now extend the class that contains the protected methods.
这种方法使得测试受保护的方法非常容易,因为测试案例类现在可以扩展包含受保护方法的类了。
To change it to produce instances of our case class AST hierarchy (Expr objects), the return type of the combinators has to be changed to be Parser[Expr].
要将它更改为生成case类AST层次结构的实例(Expr对象),组合子的返回类型必须更改为Parser[Expr]。
Aimed at the limitations of available approach for case class retrieval, a new similitude cosine two-value approach was proposed for case class retrieval.
针对实例类检索的子空间法的不足,提出了实例分类检索的相似余弦二值法。
In my particular implementation, the EJBServletTestCase test case class has to be in two places -- on the client and server side -- as it is run from two places.
在我具体的实现中,EJBServletTestCase测试案例类必须存在于两个地方 ?在客户机和服务器端上 ?
A case class is a convenience mechanism for the Scala programmer to create a class with some assumed defaults in place. For example, when writing the following.
case类是使scala程序员得以使用某些假设的默认值来创建一个类的一种便捷机制。
In this case, we use an abstract class to define the service specification, as shown in Figure 5.
在这种情况下,我们使用一个抽象类来定义服务规范,如图5所示。
However, this case — where a class manages its own memory — is one of the very few situations where explicitly nulling objects that are no longer needed is a good idea.
但是这种情况——由类管理其自己的内存——是一种非常少见的情况,即显式地消除不再需要的对象是一个好主意。
Here's a video of a Darden case study class.
这里有一个达登商学院案例研究课堂的视频。
The descriptor points to the implementation of the component, in this case a class file, and also includes any configuration information that the component needs.
描述符指向组件的实现,在这种情况下是一个类文件,还包含组件需要的任何配置信息。
Make an inner class in the parent class, which is a test case.
在父类中建立一个内部类,这个内部类是个测试用例。
In this case, the class name is implicitly used as a key.
在这一情况中,类名隐式地用作一个键。
Give each base case its own class.
为每个基本例给出一个自己的类。
This Use Case Controller class represents a generic placeholder to receive events and messages from the human actor.
这个用例控制类表示的是一个尚未进一步定义的类,它的职责是从用户那里接收事件和消息。
The test case creates two class loaders, each with what appears to be the same classpath.
测试用例创建了两个类装入器,每个类装入器使用的类路径看起来相同。
Every test case must extend from this class.
每个测试用例都必须是从这个类扩展而来。
I`ll have to repeat a class in any case.
不管怎么说,我都要复习我的课程。
A use case is neither a class specification nor a data specification.
用例既不是类规范,也不是数据规范。
A case study: Class modeling transformed into physical data modeling.
案例研究:将类模型转换为物理数据模型。
应用推荐