By bloid
via michaelfeathers.typepad.com
Published: Sep 22 2007 / 02:12
Join any discussion about unit testing and there's one question that will invariably come up: how do you test private methods?
There are a number of answers. Some people advocate increased visibility. They say that if you feel that you must test a private method, it's really no great sin to make it protected, public or package private in order to make it testable.
Add your comment
Voters For This Link (15)
-
bloid -
zis -
gst -
rick -
baysmith -
madlep -
dzonelurker -
pashimito -
jczerg68 -
jsankey -
ddelponte -
debasishg -
raveman -
xaymaca2020 -
antych