Consider this piece of code: -
Whatever mock = EasyMock.createMock( Whatever.class );
mock.doSomething();
EasyMock.expectLastCall(); // <- Does this do anything?
EasyMock.replay( whatever );
Is expectLastCall()there something doing here? Adding or removing this line from my test does not matter.
Obviously this is useful if you add .andThrowor .atLeastOnce()etc. to the challenge. This is not what I am asking for.
source
share