Closed GoogleCodeExporter closed 8 years ago
Hello, the @InjectMocks javadoc is actually wrong, the injection code, is field
based.
So it's quite expected to see a 0% coverage regarding the setters.
It allows dependency injection without breaking your tested object API with
setters.
I you want to change the default configuration of mockito, declaring a new
org.mockito.configuration.MockitoConfiguration extending
DefaultMockitoConfiguration or implementing IMockitoConfiguration.
Or you might want to provide a path allow both field and setter injection you
might want to provide a patch.
Original comment by brice.du...@gmail.com
on 10 Aug 2010 at 6:02
>Hello, the @InjectMocks javadoc is actually wrong
I know :) We have that fixed in trunk.
>you might want to provide a patch.
That would be good. I intend to change mockito to use setters if they are
available.
Cheers,
szczepan
Original comment by szcze...@gmail.com
on 11 Aug 2010 at 9:31
High szczepan
> That would be good. I intend to change mockito to use setters if they are
available.
When coding for the i209 enhancement, I saw you would like to refactor the
engine in a CoR pattern; I like that. If you are busy, I can work on it in the
next weeks.
btw when say this:
>you might want to provide a patch.
I was talking to Arpit :)
Original comment by brice.du...@gmail.com
on 12 Aug 2010 at 9:16
Original comment by szcze...@gmail.com
on 13 Aug 2010 at 6:54
Original comment by brice.du...@gmail.com
on 3 Sep 2012 at 10:00
Original issue reported on code.google.com by
arpit...@gmail.com
on 10 Aug 2010 at 3:29