Link Details

Link 2454 thumbnail
User 197420 avatar

By alessiopace
via jroller.com
Published: Aug 27 2006 / 23:09

"Sometimes you may need to mock only some methods of a class and keep the normal behavior of others. This usually happens when you want to test a method that calls some others in the same class. So you want to keep the normal behavior of the tested method and mock the others." Let's try it!
  • 12
  • 0
  • 568
  • 238

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



Voters Against This Link (0)