Closed GoogleCodeExporter closed 9 years ago
Thanks for your input. We will take it into consideration when developing the
PowerMockito extension in PowerMock 1.3. Our goal is to have much improved
support
for Mockito in 1.3.
The reason why the method is called the same as in plain Mockito is that we'd
like
PowerMockito to be a replacement for Mockito where needed. EasyMock
classextensions
provides the same mechanism for plain EasyMock, i.e. just replace the
EasyMock#createMock method with EasyMockClassExtension#createMock method to
support
the mocking of classes. The class extensions then delegates to plain EasyMock
if the
type is an interface. The philosophy for PowerMockito has been along these
lines as
well so far.
Original comment by johan.ha...@gmail.com
on 12 Aug 2009 at 2:46
Ah, so is the intention that all mocking when using PowerMock and Mockito
should go
through PowerMockito, even when the class is non-final etc. and can be handled
normally by Mockito, but only requiring the @PrepareForTest annotation for those
classes that need special treatment?
That makes sense. Thanks for clarifying that.
Original comment by joe.kear...@gtempaccount.com
on 12 Aug 2009 at 3:02
Yes that's the intention. You can still mix and match Mockito and PowerMockito,
only
using the features of PowerMockito when you need them. At least that's the goal
:)
Original comment by johan.ha...@gmail.com
on 13 Aug 2009 at 6:18
Original comment by johan.ha...@gmail.com
on 1 Sep 2009 at 1:20
Original issue reported on code.google.com by
joe.kear...@gtempaccount.com
on 12 Aug 2009 at 1:42