This test reproduces the problem:
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.*;
import org.junit.Test;
public class AtLeastTest {
private interface I {
void noArg();
void oneArg(int arg);
}
@Test
public void checkMockito() {
I mock = mock(I.class);
mock.noArg();
mock.oneArg(0);
verify(mock, atLeast(1)).oneArg(eq(0));
}
}
What is the expected output? What do you see instead?
The test to pass.
What version of the product are you using? On what operating system?
1.8.0 - The Exception occurrs on at least Windows and Mac OS X
Please provide any additional information below.
AtLeastXNumberOfInvocationsChecker should pass actualInvocations to the
invocationMarker.markVerified method.
Original issue reported on code.google.com by a...@bryzak.net on 25 Aug 2009 at 8:39
Original issue reported on code.google.com by
a...@bryzak.net
on 25 Aug 2009 at 8:39