Closed GoogleCodeExporter closed 8 years ago
This is because you haven't used replayAll() (and optionally verifyAll()). I.e.
you
must do:
@Test
public void testTest() {
Some some = new Some();
replayAll();
some.test();
some.test();
}
This is awkward I know but we'll rewrite the mock policies for the next release
(or
the release after that :)) and hopefully this can be done automatically. Note
also
that this is only needed for the EasyMock extension, not the Mockito extension.
Note
also that you don't need to prepare Some.class for test for the mock policy to
work.
Original comment by johan.ha...@gmail.com
on 7 Jul 2009 at 8:33
Original issue reported on code.google.com by
mat...@gmail.com
on 6 Jul 2009 at 8:18