You can mock, but at least I'm willing to have a try!
你可以嘲笑我,但我至少愿意试一试。
How should the service mock work?
服务模拟应该如何运作?
Stay with us, and I will not mock at thee.
留下来和我们在一起吧,我不会嘲笑你的。
Those who mock history will be mocked by history.
嘲弄历史的人必将被历史所嘲弄。
你的模拟考试得了多少分?
He screwed his face into an expression of mock pain.
他把他的脸扭曲成假痛苦状。
"It's tragic!" swoons Jeffrey in mock horror.
“太悲惨了!”杰弗里假装害怕得昏了过去。
The mock King did mechanically as he had been bidden.
这位假国王机械地照他的吩咐做了。
The mock object is now complete.
模拟对象现在已完成。
答案是mock对象。
Create an instance of the mock class.
创建该mock类的一个实例。
The crowd will not mock your mistakes.
大家不会嘲笑你的错误。
Verify consistency in the mock objects.
验证模仿对象中的一致性。
Exercise code that USES the mock object.
使用mock对象的测试代码。
Derive the mock class from the interface.
从接口派生出mock类。
Mock objects and mock object controllers.
模拟对象和模拟对象控制器。
We had to create three mock object classes.
我们需要创建三个模拟对象类。
Listing 3 shows the mock device object code.
清单3给出模拟设备对象的代码。
It's easy to mock that brash forecast now.
现在,对这样冲动的预测大加嘲讽是很容易的事。
Set state and expectations in the mock objects
设置模仿对象中的状态和期望值
Two gotchas on mock objects before we proceed.
在我们继续之前,关于mock对象有两点需要知道。
At first, mock objects can seem quite daunting.
一开始,模拟对象看上去令人生畏。
You can also mock out the logging infrastructure.
您也可以模拟日志基础架构。
EasyMock.replay does not actually replay the mock.
replay不会实际重放mock。
BLAIR: Look, I do not come to mock thee, Gordon.
布莱尔:看吧,戈登,我没有来愚弄你。
This kind of mock object is sometimes called a fake.
这种mock对象有时候称为fake。
Collaborator is the class you must mock appropriately.
Collaborator是必须正确模拟的类。
Tip 3: Don't use variable names that will mock you.
提示3:不要使用弄巧成拙的变量名。
What is a stub? And how is a stub different than a mock?
什么是stub呢? stub与mock有什么区别呢?
Testing with complex dependencies? Use a mock object.
测试带有复杂的依赖性?
应用推荐