Now, let's run the test case class on IE, Firefox and Safari browser.
现在,我们将在IE、Firefox和Safari浏览器上运行测试用例类。
As you can see, lots of things happened with a case class that don't normally happen for a traditional class.
如您所见,伴随case类发生了很多传统类通常不会引发的事情。
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类允许精炼的简单对象的构造,以及一些预定义的方法。
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, a global item class can be defined for the connector, to serve as a way to retrieve those properties that can always be accessed.
在这种情况下,可以为连接器定义一个全局项目类,作为对那些一直可以进行访问的属性进行检索的方法。
In this case, we use an abstract class to define the service specification, as shown in Figure 5.
在这种情况下,我们使用一个抽象类来定义服务规范,如图5所示。
Put each test case in the same package as the class it's testing to gain access to package and protected members.
将每个测试实例与它要测试的类放在同一个包内,以获得对包成员和保护成员的访问权。
In this case, we use an abstract class to define the service interface and operations of the exposed capabilities, as shown in Figure 3.
在这种情况下,我们使用一个抽象的类,来定义服务接口以及预期功能的操作,如图3所示。
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.
但是这种情况——由类管理其自己的内存——是一种非常少见的情况,即显式地消除不再需要的对象是一个好主意。
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.
描述符指向组件的实现,在这种情况下是一个类文件,还包含组件需要的任何配置信息。
In this case, because of the leading p, each class can be used only with the paragraph tag.
在这个示例中,因为前面的标记名是P,所以这些类只应用于段落标记。
In this case, you assign the actual class name to the variable, effectively creating an alias to the original class (see Listing 3).
在这种情况下,您可以向该变量分配一个实际的类名称,有效地为原先的类创建一个别名(参见清单3)。
As we move from use case diagrams into sequence and class diagrams, we will immediately notice the impact of known actors.
当我们从用例图转入到序列图和类图时,马上就会注意到已知的参与者的影响。
In this case, our data Binding class transforms the data passed in the native format from a messaging system to a Service data Object (SDO) in an SCA application and vice-versa for a response message.
在本例中,我们的数据绑定类将转换从消息传递系统以本机格式传递到SCA应用程序中服务数据对象(SDO)的数据,对于响应消息适用相反过程。
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.
测试用例创建了两个类装入器,每个类装入器使用的类路径看起来相同。
Examples are use cases, use case models, business rules, classes, class diagrams, sequence diagrams, the data model, and supplementary specifications.
例子是用例、用例模型、业务规则、类、类图、序列图、数据模型和补充规约。
One of the reasons why this is usually the case is to do with class leakage across module boundaries.
之所以这样,原因之一是跨越模块边界的类泄漏。
When you implement a new class of use case, you have to create a new DTO and go tweak the EJB to retrieve it.
当实现用例的新类时,必须创建一个新的DTO,并调整EJB以对其进行检索。
Let's assume you want to change the name of a generated class, from "Case" to "Special Case", as shown in Listing 4.
假设希望把生成的类的名称由“Case”改为“Special Case”,见清单4。
In this case the ResourceBundle class (see Listing 3) can be used to look up translated string constants and to include the internationalized strings in the XML data.
在这种情况下,可以使用resourcebundle类(请参阅清单3)来查找已翻译好的字符串常量,并将国际化字符串置入xml数据中。
In this case, append this fully qualified class name with concrete as the UID for the concrete portlet application.
在这种情况下,添加这个带有concrete的全限定类名作为concreteportletapplication的UID。
The initial set of class loads (279, in this case) are all triggered by the attempt to load the Demo class.
最初的一组类装入(本例中是279个)都是在尝试装入demo类时触发的。
应用推荐