Closed GoogleCodeExporter closed 9 years ago
Also please note that the default Mockito behaviour of using field name as
default mock name (when an explicit @Mock(name="xyz") has not been given) does
not work either as PowerMockito instead uses the field type as base for default
mock name:
@Mock
SomeInterface abc;
@Mock
SomeInterface def;
The referred mockito-1.9.5 / MockAnnotationProcessor.process() implements this
aspect as well.
Original comment by jonas.be...@nitorcreations.com
on 17 Jan 2013 at 1:16
It could be that org.powermock.api.extension.listener.AnnotationEnabler is not
updated to reflect the latest Mockito changes. If you want to help out you're
very welcome.
Original comment by johan.ha...@gmail.com
on 22 Jan 2013 at 7:53
The method MockCreator.toInstanceName(Class) did not consider the name defined
in MockSettings, so the value of the annotation was ignored.
Created a Pull Request for this issue.
(https://github.com/jayway/powermock/pull/18)
Original comment by willianc...@gmail.com
on 13 May 2015 at 1:55
Thanks!
Original comment by johan.ha...@gmail.com
on 13 May 2015 at 6:23
Original issue reported on code.google.com by
jonas.be...@nitorcreations.com
on 17 Jan 2013 at 12:21