Having two users is even better, but the second one can be on call for doing things like checking out live prototypes and mock-ups.
有两名用户就更好了,但是,第二名用户不必在现场,只需检查所设计的原型和模型即可。
To turn it on, call EasyMock.verify (mock) at the end of your test method.
要想启用它,应该在测试方法末尾调用EasyMock . verify (mock)。
Once the expectation is set, the test calls the getTitle() method, which should trigger the aspect and result in the expected call to the mock.
设置了期望后,测试调用getTitle()方法,它应当触发方面并产生预期的对mock 的调用。
If the mock does not receive the call, it will fail the test automatically during tear down.
如果mock没有收到调用,那么它就会在销毁时自动使测试失败。
Here is the jsfiddle. For test purpose, I replaced doAjax arguments by a mock factory call, but the code stay the same.
我认为你的代码是做正确的方式,把你的电话在一个新的推迟,直到所有的尝试都达到了回报。
Here is the jsfiddle. For test purpose, I replaced doAjax arguments by a mock factory call, but the code stay the same.
我认为你的代码是做正确的方式,把你的电话在一个新的推迟,直到所有的尝试都达到了回报。
应用推荐