gordonad / powermock

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

verify/replay doesn't work properly when mixing classes and instances #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
verify calls verifyClass which clears the state! We need to refactor
verifyClass to a new private method that doesn't clear state.
verify(object...) and verifyClass should call this new method (the old
verifyClass _should_ clear state though). 

This happens when you do PowerMock.verify(MyClass.class, myInstance,
myInstance2); Before myInstance has been verified the PowerMock state has
been cleared.

Original issue reported on code.google.com by johan.ha...@gmail.com on 9 Sep 2008 at 1:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Make sure niceReplayAndVerify() works when doing this.

Original comment by johan.ha...@gmail.com on 9 Sep 2008 at 2:03

GoogleCodeExporter commented 9 years ago
Replay/verify works as expected when mixing classes and instance mocks.

Original comment by johan.ha...@gmail.com on 13 Sep 2008 at 10:39