Closed GoogleCodeExporter closed 8 years ago
Hi,
Actually, that behavior is expected, as Mockito will remember each invocations
the code is doing. So there will objects created for each interactions in the
1000000 loop. This is needed as interactions might be verified later.
That being said Hynek Mlnarik did a great job to allow Mockito to not register
invocations, the work is still in master though. Keep in mind this is not yet
released, but you can enable this feature by declaring the mock like that :
mock(Object.class, withSettings().stubOnly());
Does that work for you ?
Original comment by brice.du...@gmail.com
on 22 Nov 2012 at 11:55
I'm tempted to invalidate this issue, feel free to raise your hand if you feel
otherwise.
Original comment by brice.du...@gmail.com
on 4 Dec 2012 at 3:17
Original issue reported on code.google.com by
xxb...@gmail.com
on 21 Nov 2012 at 11:10