ssacher-tgm / mockito

Automatically exported from code.google.com/p/mockito
0 stars 0 forks source link

ArrayIndexOutOfBoundsException using atLeast #117

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
We'll work on that, thanks for reporting.

Original comment by bbankow...@gmail.com on 25 Aug 2009 at 8:50

GoogleCodeExporter commented 8 years ago

Original comment by szcze...@gmail.com on 25 Aug 2009 at 9:04