This weekend I read about Mockito
and trial stunts, and the following idea came to me. Test private methods with this framework.
I see that PowerMock
performs this procedure, but has anyone tried to do this using Mockito
with reflection
?
In this discussion I would also like to know from friends the opinion about whether or not to test private methods, I saw some discussions about it in SO.com
and I was in doubt, because when I declare a private method only segment for each one method a responsibility and do not put several things in the same method.
Thank you