注释指明hasCode()应该覆盖方法。
The annotation indicates that hasCode() should override a method.
而且如果需要编写测试,通常都是十分简单、覆盖方法的主要功能目标的测试。
More often than not, if they do write tests, they're typically very simple, covering the method's main functional aim.
尽管使用这些方法和新的支持类肯定没问题,但提供构造函数和覆盖方法会有问题。
While it is certainly alright to use the methods and new support classes, providing constructors and overridden methods just feels wrong.
模板覆盖方法的使用几乎是无局限的,它允许你添加、编辑和删除Joomla核心组件输出的内容。
Template overrides are almost limitless. They allow you to add, edit, and remove the components of the Joomla!
因为checked异常是方法签名的一部分,在覆盖方法时,不能增加checked异常,就像不能改变return类型一样。
Because checked exceptions are part of a method's signature, you can't add one to an overriding variant any more than you can change its return type.
为此,我们可以覆盖方法px _ freeze(它在您的数据被存储之前对其进行“设置”)和方法px _ thaw(在提取数据时将调用它)。
For this purpose we can override the method px_freeze, which performs a "setup" on your data prior to it being stored, and the method px_thaw, which will be called when your data is extracted.
对所有类进行专门测试后,还要为所有未覆盖的方法编写测试代码。
Once you partially test all the classes, write tests that cover any uncovered methods.
与行覆盖一样,如果在特定方法中有两个分支,并且两个分支在测试中都被覆盖,那么您可以说这个方法有100%的分支覆盖率。
Just like line coverage, if there are two branches in a particular method and both were covered through tests, then you could say the method has 100% branch coverage.
如果不覆盖这些方法,根本无法编译此类。
You literally cannot compile this class without overriding these methods.
定制组件必须在验证发生之前覆盖这个方法以提交属性。
A custom component must override this method to commit properties before validation happens.
您可能很想知道怎样才能知道特定组件的大小是被显式地指定的,或通过覆盖度量方法进行度量。
You might wonder how you can know whether a particular component's dimensions have been specified explicitly or have been measured by overriding the measured method.
在特殊化对象中,覆盖创建方法以返回为测试提供的模仿对象。
In the specialization object, override the creation method to return a mock object that accommodates your test.
敏捷大学的课程来自于许多培训师,范围很广,覆盖了敏捷方法的各个方面。
Agile University lists courses from a broad range of trainers, covering the whole gambit of Agile approaches.
本节将循序渐进地描述“抽取”和“覆盖”工厂方法重构。
This section offers a step-by-step description of the Extract and Override factory method refactoring.
方法覆盖的工作方式相同,成员可见性的工作方式相同,还有更多相同的地方。
Method overriding works the same, member visibility works the same, and so on.
测量实例3:方法覆盖模块视图。
一个覆盖完全方法的网站已经产成(测试过程中鉴别的问题已经被确定)。
A website covering the complete method has been generated (problems identified during testing have been fixed).
XmlDictionaryIO可以覆盖其父方法(import和export),也可以选择不提供自己的实现(path )。
XmlDictionaryIO can override its parent methods (import and export ), or it can choose not to provide its own implementation (path ).
特殊化对象:覆盖创建方法以返回模仿对象而不是合作者的目标的子类。
Specialization object: a subclass of the target that overrides the creation method to return a mock instead of a collaborator.
要解决这个问题,必须对JETEmitter类进行扩充,使其覆盖initialize方法,并将其加入您自己的classpath项中。
To work around this problem, you must extend the JETEmitter class to override the initialize method and add in your own classpath entries.
如果您正在创建定制布局,那么需要在调用 super.updateDisplayList() 之后覆盖该方法,然后替换为希望使用的逻辑。
You need to override this method after calling super.updateDisplayList() if you're creating a custom layout, and then substitute the desired logic.
Streamlined覆盖叫作render的方法,以实现这个目的。
Streamlined overrides a method called render to accomplish this purpose.
如果设置ssoDomain选项,那么该值将覆盖认证方法中设置的值。
If the SSO Domain option is set, this value overrides what is set in the authentication method.
然后从基类UIComponent 扩展,并覆盖updateDisplayList()方法来绘制这个定制矢量图。
Then extend from the base class UIComponent, and override the updateDisplayList() method to draw the custom vector drawing.
在图1中,被覆盖的方法加上了Hit标签,没有覆盖的则加上Missed标签。
In Figure 1, methods that are covered are labeled Hit, and those not covered are labeled Missed.
如果覆盖此execute方法,则步骤不能自动执行。
If this execute method is overridden, the steps will not be executed automatically.
相反,我使用Groovy 元编程直接覆盖getParams方法,使期望的值出现在返回的HashMap 中。
Instead, I use Groovy metaprogramming to override the getParams method directly, forcing the expected values to be present in the HashMap that's returned.
如果这些类中的任何一个的子类需要覆盖默认行为,那么可以通过覆盖这个方法实现。
If a subclass of one of these classes needed to override the default behavior, it could do so by overriding the method.
这允许子类根据需要仅覆盖一些方法。
这里提供了一系列的覆盖范围方法,包括单向的,双向的以及三向的交流,还有所有的排列。
There are a couple of coverage methods provided, including one-way, pair-wise, and three-wise interactions, and all permutations.
应用推荐