Link Details

Link 43216 thumbnail
User 111696 avatar

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.
  • 15
  • 0
  • 960
  • 273

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (15)



Voters Against This Link (0)