Closed GoogleCodeExporter closed 9 years ago
private methods are only declared in the spied type, when Mockito spy an
object, it extends that type, hence it cannot see or access that private method.
Mocking private methods is test smell, a design smell, and not Object Oriented.
The code should be refactored to enable the test to alter the behavior of the
collaborating object (the one that replace the private method).
Original comment by brice.du...@gmail.com
on 21 Apr 2014 at 5:24
Original issue reported on code.google.com by
xierui.s...@gmail.com
on 18 Apr 2014 at 8:55