Closed GoogleCodeExporter closed 8 years ago
Hi,
Well, no the framework is correct about InvalidUseOfMatchersException.
`org.mockito.Matchers.anyInt()`, which is an argument matcher is misplaced in a
`thenReturn` call, so Mockito cannot find the argument for which this matcher
should be used.
You cannot use matchers anywhere else than in calls you want to stub.
Original comment by brice.du...@gmail.com
on 29 Apr 2013 at 11:02
Original issue reported on code.google.com by
johnmich...@gmail.com
on 26 Apr 2013 at 2:48