Aug 5, 2020
Maidan-E-JungMovi繧偵ム繧ヲ繝ウ繝ュ繝シ繝 . .
Moorhuhn Kart Extra XS.rar
Jul 9, 2020
Maidan-E-JungMovi繧偵ム繧ヲ繝ウ繝ュ繝シ繝 . .
Moorhuhn Kart Extra S.rar
Jul 15, 2020
Maidan-E-JungMovi繧偵ム繧ヲ繝ウ繝ュ繝シ繝 . .
Moorhuhn Kart Extra (Mini).rar
Jun 27, 2020
Maidan-E-JungMovi繧偵ム繧ヲ繝ウ繝ュ繝シ繝 . .
Moorhuhn Kart (Mini).rar
Jun 20, 2020
Maidan-E-JungMovi繧偵ム繧ヲ繝ウ繝ュ繝シ繝 . .
Moorhuhn Kart (Mini).rar
Jun 14, 2020
Maidan-E-JungMovi繧偵ム繧ヲ繝ウ繝ュ繝シ繝 . .
Moorhuhn Kart (Mini).rar
May 24, 2020
Maidan-E-JungMovi繧偵ム繧ヲ繝ウ繝ュ繝シ繝 . .
Moorhuhn Kart (Mini).rar
May 17, 2020
Maidan-E-JungMovi繧偵ム繧ヲ繝ウ繝ュ 01e38acffe
RAR 132.00M torrent.
Category:2005 video games
Category:Dirt Rally games
Category:PlayStation Portable games
Category:Rally racing video games
Category:Video games developed in GermanyQ:
How to unit test a method with callbacks using EasyMock?
I have an issue with testing a method using EasyMock. I want to test method with callbacks. Let's say I have this method:
public void foo(Baz baz, Callback callback) {
doSomeThing(baz);
callback.callback(true);
}
And I want to test method with easymock:
@Test
public void testFooWithCallback() {
EasyMock.expect(doSomeThing(EasyMock.anyObject())).andReturn(false);
EasyMock.expect(doSomeThing(EasyMock.anyObject())).andReturn(true);
EasyMock.expect(callback.callback(EasyMock.anyObject()))
.andReturn(true);
foo(EasyMock.anyObject(), new Callback() {
@Override
public boolean callback(Object o) {
return false;
}
});
assertTrue(false);
}
public interface Baz {
boolean doSomeThing(AnotherClass cls);
}
I have an issue with it because:
EasyMock.expect(doSomeThing(EasyMock.anyObject())).andReturn(false);
This actually checks only my method, not the method with Callback.
EasyMock.expect(doSomeThing(EasyMock.anyObject())).andReturn(true);
This actually checks my method with Callback.
EasyMock.expect(callback.callback(EasyMock.anyObject()))
.andReturn(true);
This doesn't checks the method with Callback. So my test
Related links:
Comments