turn on method 接通方法
In following the Open Closed Principle, I want to be able to write a class or a method and then turn my back on it, comfortable that it does its job and I won't have to go back and change it.
在遵循开闭原则的过程中,我期望能够写出一个类或者方法,在以后我回过头读它的时候,会很舒服地看到它能完成它的工作并且我也不需要再修改它。
To turn it on, call EasyMock.verify (mock) at the end of your test method.
要想启用它,应该在测试方法末尾调用EasyMock . verify (mock)。
That variable, in turn, calls the __get method on the object that looks for the title item in the hash table and returns it.
这个变量会调用对象的__get方法,在散列表中查找title条目并返回。
应用推荐