HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

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.
  • 14
  • 0
  • 1211
  • 0

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 (14)



Voters Against This Link (0)