Mockito真的不需要期望行为,这简化了单元测试。
Mockito really cleans up the unit test by not requiring expectations.
公共政策手段是公共政策方案中引导或促使政策目标群体采取期望行为的具体措施。
Policy instruments are specific tools that are designed to bring about expected actions of target population of public policies.
其它的mocking库需要你在执行前记录期望行为(expectations),而这导致了丑陋的初始化代码。
Other mocking libraries require you to record expectations before execution, which tends to result in ugly setup code.
使用闭包,我能够把对期望行为的定义推迟到运行时——所以不必像在以前的设计中要做的那样再定义新的Filter类型并编译它。
With closures, I was able to defer the definition of my desired behavior until runtime — so there was no need to define a new Filter type and compile it, as I would have with my previous design.
我们很不理智地期望孩子们有近乎完美的行为。
We unreasonably expect near perfect behaviour from our children.
当群体意识到他们所做的某些行为与他们所期望的结果之间存在的明显联系时,他们就会对这些行为进行重复,改进,并正式化为固定的典礼或仪式。
Perceiving an apparent connection between certain actions performed by the group and the result it desires, the group repeats, refines and formalizes those actions into fixed ceremonies, or rituals.
她接着说道:“如果某个东西看起来像人,我们就会对其寄予很高的期望,但它们的行为方式可能与人类不同,人类直觉可以感知到其他人的反应。”
She then continues, "If something looks like a human, we have high expectations of them, but they might behave differently in ways that humans just instinctively know how other humans react."
这里,也存在一个与对任何大型或重要的组织计划相同的,对项目组合管理的引入的行为的期望。
Here, too, there is an expectation of behavior that is the same for portfolio management introduction; as for any large or important organizational initiative.
行为和期望是不同的。
我们需要增强它们的行为,以使函数符合我们的期望,但是我们也需要使用另一个名字重新定义函数,从而避免进一步混淆范围。
We may need to augment their behavior to match what we want the function to do, but we also want to redefine the function with another name to avoid further cluttering the scope.
在软件开发中,开发人员编写的代码通常取决于某个函数的未归档的行为,例如期望发生某个未归档的附作用。
It is common in software for developers to write code that depends on some undocumented behaviour of a function, such as expecting an undocumented side effect to occur.
该代码重用意味着用户期望更加一致的行为。
This code reuse meant that users could expect more consistent behavior.
“我这样的行为将导致这个新人,至少暂时地,实现我梦寐以求的期望,”安德森说。
"The behaviors I'm engaging in will lead this new person, temporarily at least, to actually confirm my expectations," says Andersen.
对于处理报告、日志文件等类似工作,这是您实际上期望的行为。
For processing reports, log files, and the like, this is exactly the behavior you want.
尽管被期望改变他们的行为而经常处罚孩子们,但大多数孩子并不会有什么进步。
Although many of these children will not develop problems, the ones who do are often punished in the expectation that it will change their behavior.
跟其他单元测试一样,消费者测试可用于驱动开发活动:开发者创建服务行为,以满足测试的期望。
Much as any with other unit test, consumer tests can be used to drive development activities, with developers creating service behaviours to satisfy the tests' expectations.
在瀑布开发中,设计人员和开发人员试图达到他们期望的行为,就是代码满足需求规格说明。
In waterfall development, the designers and developers try to achieve the desired behavior as best they can by complying with the specification.
只要正在被测试的类的行为如所期望的那样,它将不会注意到差异,而单元测试会检查是否发出了正确的查询。
As long as the class being tested behaves as expected, it won't notice the difference, and the unit test can check that the proper query was emitted.
在正常工作行为内部,有些操作上下文元素不期望被改变。
Within normal operating behavior, there are elements of the operating context that are not supposed to change.
不幸的是,许多“敏捷的RUP”项目经理并不改变他们的行为,或者设置适当的期望,他们在整个开发周期中总是从一个迭代移动到另一个迭代。
Unfortunately, many "agile RUP" PMs don't change their behavior, or set appropriate expectations, as they move from iteration to iteration throughout the lifecycle.
然而,即使执行单元是一个线程,期望的事务管理器行为都是相同的。
However, the desired behavior of the transaction manager would be the same even if the unit of execution was a thread.
期望的行为:如果XA_OPEN出错,事务管理器要发出警告,并且继续正常运行。
Desired behavior: If the XA_OPEN fails, the transaction manager should issue a warning and continue normally.
有迹象表明这些期望有可能内化并影响孩子的实际行为和成就。
There are signs that these expectations have the potential to become self-fulfilling in influencing children's actual conduct and achievement.
添加闭包意味着我不用像在原来的Filter接口中那样必须定义一个接口类型,或者依赖特定的实现才能得到期望的行为。
Adding closures means that I don't have to define an interface type as I did in the original Filter interface, or rely on specific implementations for desired behaviors.
IT治理大师PeterWeill和JeanneRoss很好地将之定义为“鼓励所期望IT行为的权利决策与义务框架”(摘自[weillross])。
IT-Governance gurus Peter Weill and Jeanne Ross brilliantly define it governance as "decision rights and accountability framework to encourage desirable behavior in it." (from [WeillRoss]).
但是我们能否期望每件好的环保行为都能得到更多的航空里程的奖励承诺吗?
But can we expect every piece of good environmental behaviour to be rewarded with the promise of more air miles?
在客户满意调查中,你需要再问一些其它的问题以靠近你所期望的行为以及收集信息以便做一些改变或者对某些东西保持不变。
You want to ask other questions in a customer satisfaction survey to get closer to the expected behavior and to collect information about what to change and what to keep doing.
预期性指标,是预计和期望达到的目标,主要通过引导市场主体行为来实现;
Anticipated targets are those that we expect or hope to meet, mainly by guiding the actions of market players.
这些体察是长期习得的,又反过来创造了强大的预期期望,引导个体做出这样的行为,而外部世界却视之为傲慢无礼、懒惰、病态等等。
These perceptions are learned over time, and they create powerful expectations that can lead individuals to act in ways that, to the outside world, suggest insolence, laziness, pathology, etc.
这是我们期望的行为。
应用推荐